<meta>正则 复制代码 代码如下:var charResult = this.getAttribute("responseText").match(/<meta.*?\Wcharset\s*=\s*(\S+?)["'>\s]/i); charResult = charResult ? charResult[1] : "gb2312"; & lt meta& gt 正则 转载请说明出处知优网 » &lt;meta&gt;正则(正则(?))