摘要:
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 阅读全文
摘要:
window.onbeforeunload = onbeforeunload_handler; window.onunload = onunload_handler; function onbeforeunload_handler(){ var warning="确认退出?"; return war 阅读全文