会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Caraxiong
博客园
首页
新随笔
联系
订阅
管理
2017年4月20日
浅析-js的alert()与console.log()区别
摘要: alert(): alert()只能输出string,如果alert输出的是对象会自动调用toString()方法 e.g. alert([a,b,c]);//a,b,c alert不支持多个参数的写法,只能输出第一个值 e.g. alert(1,2,3);//1 console.log(): 在打
阅读全文
posted @ 2017-04-20 10:46 Caraxiong
阅读(839)
评论(0)
推荐(0)
编辑
公告