日期:2014-05-16  浏览次数:20334 次

js 知识小结(一)

一、修改对像而生成新的对象

1 SCRIPTLANGUAGE="JavaScript">
2 !--
3 varitem="test";
4 varitemRef=item;
5 alert(item);
6 item+="ing";
7 alert(item);
8 alert(itemRef);
9 //-->
10 /SCRIPT>


二、typeof 类型检查

友情链接: 爱易网 云虚拟主机技术 云服务器技术 程序设计技术 开发网站 APP开发教程
Copyright © 2013-2024 爱易网页 当前在线:1638人  网站在22时2分36秒内访问总人数:306726人 当前 45.03%  粤ICP备18100884号-2
1 if(typeofnum=="string"){
2 num=parseInt(num);