摘要:
// addEvent/removeEvent written by Dean Edwards, 2005 // with input from Tino Zijdel // http://dean.edwards.name/weblog/2005/10/add-event/ function addEvent(element, type, handler) { //为每一个事件处理函... 阅读全文
摘要:
String.prototype.stripHTML = function(){ var reg = //g; return this.replace(reg,""); }; var str = "hello world!"; alert(str.stripHTML()); //outputs "hello world!" 阅读全文