摘要:
1 //将鼠标移到文本最后 2 function set_focus(el) { 3 el.focus(); 4 if (el instanceof jQuery) el = el[0]; 5 //el=el[0]; //jquery 对象转dom对象 6 if ($.support.msie) { 7 var range = do...
阅读全文
posted @ 2016-11-19 17:46
sunnie_c
阅读(418)
推荐(0)
编辑
摘要:
1 2 3 4 5 6 7 8 9 91 92 93 94 95 96 97 98 99 100 ...
阅读全文
posted @ 2016-11-19 16:38
sunnie_c
阅读(124)
推荐(0)
编辑
摘要:
var arr1 = ["abc", "cbd", "def"]; var arr2 = ["Abc", "cbd", "def"]; if (arr1.length == arr2.length) { var arr11 = $.map(arr1.sort(), function (v,i) {
阅读全文
posted @ 2016-11-19 15:37
sunnie_c
阅读(4307)
推荐(0)
编辑
摘要:
1.json对象转换为字符串 JSON.stringify(value [, replacer] [, space]) var student = new Object(); student.id = "001"; student.name = "程陈"; student.age = "18"; v
阅读全文
posted @ 2016-11-19 14:57
sunnie_c
阅读(3782)
推荐(0)
编辑