
js
niu_hao
这个作者很懒,什么都没留下…
展开
-
js报错:size is not a function
jquery报错 .size is not a function原创 2022-10-25 17:24:22 · 1890 阅读 · 1 评论 -
js去除空格
SCRIPT LANGUAGE="JavaScript"> //出处:网上搜集 // Trim() , Ltrim() , RTrim() String.prototype.Trim = function() { return this.replace(/(^\s*)|(\s*$)/g, ""); } String.prototype.LTr转载 2013-05-21 17:15:49 · 764 阅读 · 0 评论 -
jQuery,javascript获得网页的高度和宽度 .
网页可见区域宽: document.body.clientWidth 网页可见区域高: document.body.clientHeight 网页可见区域宽: document.body.offsetWidth (包括边线的宽) 网页可见区域高: document.body.offsetHeight (包括边线的高) 网页正文全文宽: document.body.scrollWidth转载 2013-05-09 15:06:49 · 2051 阅读 · 0 评论 -
JQuery给select添加/删除节点
jQuery获取Select选择的Text和Value: var checkText=jQuery("#select_id").find("option:selected").text(); //获取Select选择的Text var checkValue=jQuery("#select_id").val(); //获取Select选择的option Value var checkIn转载 2013-05-30 14:07:57 · 3043 阅读 · 0 评论