document.getElementsByTagName('table')[0].οnclick=function(ev){ alert(ev).target.style.background='black' } //判断String是否符合正则表达要求 patt.test(string); //找出字符串中的符合正则的字串 patt.exec(String)
转载于:https://www.cnblogs.com/DJYBlog/p/4228804.html
转载于:https://www.cnblogs.com/DJYBlog/p/4228804.html