摘要:
var str= "aaaebbbcccddd";str = str.replace(/(.)\1+/g,'$1') 阅读全文
摘要:
var str= "aaaebbbcccddd";str = str.replace(/(.)\1+/g,'$1') 阅读全文
摘要:
当name和id相等时,document.getElementById()可能会混淆去查找先出现的。<form action="IE_BUG2.html" method="get"> <p>name:<input type="text" name="username" /></p> <p>name2:<input type="text" id="username" name="name" / 阅读全文
|