字符串
- 字符串的常用用法:http://www.jb51.net/article/29547.htm
- 固定长度的字符串补齐方法 :高效
function PrefixInteger(num, length) { return (Array(length).join('0') + num).slice(-length); }
常用到的好方法
- 获取浏览器的url
function GetRequest() { var url = location.search; //获取url中"?"符后的字串 var theRequest = new Object(); if (url.indexOf("?") != -1) { var str = url.substr(1); strs = str.split("&"); for(var i = 0; i < strs.length; i ++) { theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]); } } return theRequest; }
理解上的错误
- for 循环中的排序
除了纯数字的数组排序,不能使用forin来遍历数组,会受字段的长度影响
常用正则
- 常用 http://www.jb51.net/article/76901.html
- 常用事件原理:https://blog.csdn.net/liaozhongping/article/details/48759555
- 事件名:https://blog.csdn.net/u011546421/article/details/52790524
http://www.w3school.com.cn/jsref/jsref_events.asphtml5新标签的及属性用法
- 总结:
https://blog.csdn.net/garvisjack/article/details/54754928
https://blog.csdn.net/AndyNikolas/article/details/54894614视频 video :
- 方法:https://blog.csdn.net/u014063717/article/details/50914836
css3新的属性
- 总结:
https://www.cnblogs.com/BetterMyself/p/5658597.html
http://www.cnblogs.com/xkweb/p/5862612.htmljs原生与内置对象
- 总结:
http://www.jb51.net/article/84164.htm
https://www.cnblogs.com/ningmeng666/p/6749024.html
https://blog.csdn.net/u010080803/article/details/70234936