C# Nothing is impossible

.NET家园

博客园 首页 新随笔 联系 订阅 管理

文章分类 -  Javascript

摘要:1, window.location.href   整个URl字符串(在浏览器中就是完整的地址栏)               返回值:http://www.cnblogs.com/Violet-sweet/articles/1740211.html 2,window.location.search  查询(参数)部分。除了给动态语言赋值以外,我们同样可以给静态页面,并使用 javascript来... 阅读全文
posted @ 2010-05-20 17:21 小甜甜 阅读(11347) 评论(0) 推荐(0)

摘要:js文件:doPrint.js[代码] str +=document.getElementById('print_nav').innerHTML+"</td></tr><tr><td>"; article=document.getElementById('divContext').innerHTML; //这是获取要打印内容的地方 var nv =... 阅读全文
posted @ 2010-05-14 14:34 小甜甜 阅读(5030) 评论(0) 推荐(0)

摘要:String.prototype.Trim = function() { var m = this.match(/^\s*(\S+(\s+\S+)*)\s*$/); return (m == null) ? "" : m[1]; }String.prototype.isMobile = function() { return (/^(?:13\d|15[89])-?\d{5}(\d{3}|\... 阅读全文
posted @ 2009-07-02 18:08 小甜甜 阅读(1313) 评论(0) 推荐(0)