<meta>正则

 更新时间:2006年10月14日 00:00:00   作者:  
复制代码 代码如下:

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

相关文章

最新评论