-
js 获取url参数的方法
摘要:function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; }
阅读全文
-
textarea 高度根据内容自适应
摘要:1. <textarea style="width:420px;overflow-y:visible;"></textarea>2. <textarea name="textarea" id="textarea" style='overflow-y: hidden;height:20px' onpropertychange="this.style.height = this.scrollHeight + 'px';" oninput="this
阅读全文
|