摘要: var obj = [{'pv':100,'uv':105},{'pv':123,'uv':132},{'pv':128,'uv':138},{'pv':88,'uv':68}]; console.log(sortByKey(obj,'pv','desc'));// console.log(sort 阅读全文
posted @ 2017-05-03 16:06 jok311 阅读(1586) 评论(0) 推荐(0) 编辑
摘要: window.onbeforeunload = onbeforeunload_handler; window.onunload = onunload_handler; function onbeforeunload_handler(){ var warning="确认退出?"; return war 阅读全文
posted @ 2017-05-03 15:50 jok311 阅读(860) 评论(0) 推荐(1) 编辑