javascript
yibusky
这个作者很懒,什么都没留下…
展开
-
js学习之typeof
alert(typeof("aa")); string alert(typeof(123)); number alert(typeof(true)); boolean alert(typeof(new Ar...原创 2012-07-04 08:56:21 · 141 阅读 · 0 评论 -
js学习之with
with语句可以引用对象中已有的所有属性,但是不能给对象添加属性。 操作方法如下 function persion(){ this.name = "yib"; this.age = 25; } var pp = new persion(); with(pp){ alert("姓名:" + name); alert("年龄:" + age); }...原创 2012-07-04 09:16:39 · 75 阅读 · 0 评论