首页 > 技术文章 > 防止IE不支持console.log报错
kongxiaoshuang 2016-09-22 16:28 原文
function log(msg){ if (window["console"]){//判断是否是IE console.log(msg); } }