随笔分类 -  js

摘要:详解HTML中的window对象和document对象 标签: HTMLwindowdocument 2014-11-18 11:03 5884人阅读 评论(0) 收藏 举报 标签: HTMLwindowdocument 2014-11-18 11:03 5884人阅读 评论(0) 收藏 举报 分类 阅读全文

posted @ 2016-04-25 10:29 豌豆娃 阅读(164) 评论(0) 推荐(0) |

摘要:<script type="text/javascript"> function getHostName(url) { var host = "null"; if (typeof url == "undefined" && null == url) { url = window.location.h 阅读全文

posted @ 2016-03-03 09:55 豌豆娃 阅读(595) 评论(0) 推荐(0) |

摘要:// 原生js 去除字符串空格 <script type="text/javascript"> String.prototype.trim = function (){ var reg = /^\s*(.*?)\s+$/; return this.replace(reg,"$1"); } </scr 阅读全文

posted @ 2016-03-03 09:50 豌豆娃 阅读(153) 评论(0) 推荐(0) |

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3