摘要:
document.documentElement.contains(document.body) // true document.documentElement.compareDocumentPosition(document.body) // 20 //safari5+是把contains方法放在Element.prototype上而不是Node.prototype if (!DOC.c... 阅读全文
2017年1月3日
2017年1月2日
摘要:
新浪微博API错误代码 400错误 发过去的回调地址不要编码 403错误 未审核的应用使用人数超过限制 阅读全文
2017年1月1日
摘要:
Editor.md - 开源在线 Markdown 编辑器 leanote/markdown-to-html 阅读全文
2016年12月30日
2016年12月28日
摘要:
使用Object.observe 实现数据绑定 阅读全文
2016年12月24日
2016年12月23日
摘要:
ng-repeat指令中使用track by子语句解决重复数据遍历的错误 阅读全文
摘要:
function iterator(vars, body, ret) { var fun = 'for(var ' + vars + 'i=0,n = this.length; i < n; i++){' + body.replace('_', '((i in this) && fn.call(scope,this[i],i,this))') + ... 阅读全文
摘要:
arr.indexOf(searchElement[, fromIndex = 0]) Array.prototype.indexOf() 阅读全文