摘要:
new Date()兼容IEvar date = new Date(strDate.replace(/-/g, "/")); 格式化时间Date.prototype.format = function(format) { /* * format="yyyy-MM-dd hh:mm:ss"; */ v 阅读全文
摘要:
//判断浏览器版本 function myBrowser(){ var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var isOpera = userAgent.indexOf("Opera") > -1; if (isOpera) 阅读全文