2016年8月11日
摘要: function unique(arr) { var result = [], hash = {}; for (var i = 0, elem; (elem = arr[i]) != null; i++) { if (!hash[elem]) { result.push(elem); hash[el 阅读全文
posted @ 2016-08-11 11:42 再美的梦。 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Javascript刷新页面的几种方法: 1 history.go(0) 2 location.reload() 3 location=location 4 location.assign(location) 5 document.execCommand(‘Refresh‘) 6 window.na 阅读全文
posted @ 2016-08-11 11:11 再美的梦。 阅读(880) 评论(0) 推荐(0) 编辑