1. input ÄÚÈÝÐ޸ĺóµÄʼþ£¨oninput¡¢onpropertychange£©
<input type="text" id="zfile" oninput="onlyLetter(this.id)" onpropertychange="onlyLetter(this.id)">
2. input ½¹µãÀ뿪ºóʼþ
$(document).ready(function() {¡¡¡¡$("#search_zfile").blur(function(){¡¡¡¡// ÄãÒª×öʲô¡¡¡¡})})
3. jquery ÕÒµ½ ij¸ö ±êÇ©ÏÂµÄ Ä³¸ö ¶«¶«
var trList = $("#table_jmt_detial").find("tbody");¡¡¡¡for(var i=0; i<trLength; i++) {¡¡¡¡¡¡¡¡var tdArr = trList.find("tr:eq("+i+")");¡¡¡¡¡¡¡¡var val = tdArr.find("td:eq(0)").find(¡®span:eq(0)¡®).text(); ?
¡¡¡¡} ???????}
4. jquery ÕÒµ½ ijij ¿ªÍ·µÄ ¶«¶«
$("[id^=js_input_]").each(function () {¡¡¡¡jmtBlur($(this).attr("id"));})
5. È¥³ýËùÓпոñ
$(¡®#zfile¡®).val().replace(/(^\s*)|(\s*$)/g, "");
6. textarea ¸ù¾ÝÄÚÈÝ×ÔÊÊÓ¦¸ß¶È
$("[id^=zwhm_input_]").each(function () {¡¡¡¡this.setAttribute(¡®style¡®, ¡®height:¡® + (this.scrollHeight) + ¡®px;overflow-y:hidden;¡®);}).on(¡®input¡®, function () {¡¡¡¡this.style.height = ¡®auto¡®;¡¡¡¡this.style.height = (this.scrollHeight) + ¡®px¡®;});
7. Ö»ÄÜÊäÈëÊý×Ö
function hscodeM(hscode) {¡¡¡¡hscode = hscode.replace(/(^\s*)|(\s*$)/g, "");¡¡¡¡if (isNaN(hscode)) {¡¡¡¡¡¡¡¡var tmpArr = [];¡¡¡¡¡¡¡¡var hscodeArr = hscode.split(¡®¡®);¡¡¡¡¡¡¡¡for (var i=0; i<hscodeArr.length; i++) {¡¡¡¡¡¡¡¡¡¡¡¡if (!isNaN(hscodeArr[i])) {¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡tmpArr.push(hscodeArr[i]);¡¡¡¡¡¡¡¡¡¡¡¡}¡¡¡¡¡¡¡¡}¡¡¡¡¡¡¡¡hscode = tmpArr.join(¡®¡®);¡¡¡¡}¡¡¡¡return hscode;}
¡¡¡¡
js-С¼¼ÄÜ ¤½¤¦¤Ç¤¹¤«
ÔÎĵØÖ·£ºhttps://www.cnblogs.com/MissRabbit/p/8986425.html