摘要:
一、getElementById() 参数:id 属性,必须唯一。 返回:元素本身。若 id 不唯一,则返回第一个匹配的元素。 定义的位置:仅 document(即:除 document 之外的元素调用该方法,会报 is not a function)。 二、getElementsByName() 阅读全文
摘要:
<script> function subString(str, len, hasDot) { var newLength = 0; var newStr = ""; var chineseRegex = /[^\x00-\xff]/g; var singleChar = ""; var strLe 阅读全文