随笔分类 - JS(JQuery)
在js中通过location.href方式跳转页面并在路径上传递参数中文乱码解决
摘要:js中对中文进行编码:(不对ASCII 字母和数字进行编码) window.document.location.href = "${ctxPath}/pc/selectDTByXinFang/html?subWayName="+encodeURI(encodeURI(subWayName))+"&d
阅读全文
Jquery拆分以符号隔开的字符串
摘要:$(".properCharater").each(function () { var j = 0; var properCharater = $(this).next("input").val(); if (properCharater != null) { var properSplit = p
阅读全文
删除键(退格键)触发事件
摘要:$(function () { $("body").keydown(function (event) { if (event.keyCode == 8) { alert(1); } });});另附上键码以及示例:http://www.cnblogs.com/daysme/p/6272570.htm
阅读全文
浙公网安备 33010602011771号