javascrpit
zzcchunter
这个作者很懒,什么都没留下…
展开
-
JS判断对象是否位空
function isEmpty(obj) { // null and undefined are "empty" if (obj == null) return true; // Assume if it has a length property with a non-zero value // that that property is correct.原创 2014-01-17 15:46:50 · 590 阅读 · 0 评论 -
jqm 页面切换事件监听
参考http://jsfiddle.net/kiliman/aAanV/ jQuery Mobile Test Page 1 Place content here Go to page 2 Change color原创 2014-01-20 14:20:59 · 2953 阅读 · 0 评论 -
chrome extension js copy function
function copyTextToClipboard(text) { var copyFrom = document.createElement("textarea"); copyFrom.textContent = text; var body = document.getElementsByTagName('body')[0]; body.appendChi转载 2014-04-15 19:28:16 · 1092 阅读 · 0 评论