`
文章列表
类型转换:parseInt\parseFloat\toString 类型判断:typeof;eg:if(typeof(var)!="undefined")\isNaN 字符处理函数:toLowerCase\touppercase\  substring(从哪里截到哪)\substr(从哪里开始;截多少个字符) \indexOf(字串中找某串字符)\replace(替换函数)\ charCodeAt concat split join 定时处理函数:setInterval;setTimeout;clearTimeout;clearInterval 两个显示控制 ...
1.         document.write( " "); 输出语句 2.JS中的注释为// 3.传统的HTML文档顺序是:document- >html- >(head,body) 4.一个浏览器窗口中的DOM顺序是:window- >(navigator,screen,history,location,document) 5.得到表单中元素的名称和值:document.getElementById( "表单中元素的ID號 ").name(或value) 6.一个小写转大写的JS: document.get ...
 正则表达式是一个描述字符模式的对象。   JavaScript的RegExp对象和String对象定义了使用正则表达式来执行强大的模式匹配和文本检索与替换函数的方法.    在JavaScript中,正则表达式是由一个RegExp对象表示的.当然,可以使 ...
1. window.event           * IE:有window.event对象           * FF:没有window.event对象。可以通过给函数的参数传递event对象。如onmousemove=doMouseMove(event)    2. 鼠标当前坐标           * IE:event.x和event.y。           * FF:event.pageX和event.pageY。           * 通用:两者都有event.clientX和event.clientY属性。    3. 鼠标当前坐标(加上滚动条滚过的距离)    ...
Attribute是属性的意思,上面用蓝色表示的部分就是input标签中一个名为id的Attribute,用红色部分表示的是一个 node(节点),文章仅对部分兼容IE和FF的Attribute相关的介绍。 attributes:获取一个属性作为对象 getAttribute:获取某一个属性的值 setAttribute:建立一个属性,并同时给属性捆绑一个值 createAttribute:仅建立一个属性 removeAttribute:删除一个属性 getAttributeNode:获取一个节点作为对象 setAttributeNode:建立一个节点 removeAttributeNod ...
Global site tag (gtag.js) - Google Analytics