当前位置:主页 > >

<meta>正则

时间:2021-02-06 10:06:13 | 栏目: | 点击:

复制代码 代码如下:

var charResult = this.getAttribute("responseText").match(/<meta.*?\Wcharset\s*=\s*(\S+?)["'>\s]/i);
charResult = charResult ? charResult[1] : "gb2312";

您可能感兴趣的文章:

相关文章