2016年6月23日

高程笔记

摘要: 1、creatTextNode兼容 2、 <form name="form1" method="post" enctype="multipart/form- data" action="requestfile/asprece.aspx">//如果file框没有加runat="server",则 fo 阅读全文

posted @ 2016-06-23 18:21 鸢尾。 阅读(190) 评论(0) 推荐(0)

2016年6月18日

js全局访问局部变量

摘要: 1、 在函数内使用this.name(变量名)的方式赋值,当函数作为普通函数调用时,在函数外部可以直接访问到,这是因为这里的this指向window: 当函数作为方法函数调用时,情况又有所不同,这时候this指向发生变化,指向自身: 2、 阅读全文

posted @ 2016-06-18 11:17 鸢尾。 阅读(2167) 评论(0) 推荐(0)

2016年6月15日

typeof 和constructor

摘要: typeof可以检查到变量是否有定义,而construct只能检查已定义变量的类型。 construct检测返回: Object / Array / Function / String / Number / Boolean 阅读全文

posted @ 2016-06-15 10:43 鸢尾。 阅读(105) 评论(0) 推荐(0)

导航