IT码农库

您当前所在位置:首页 > 网络编程 > 正则表达式

正则表达式

<meta>正则

互联网 2006-10-14正则表达式8132
复制代码 代码如下:var charResult = this.getAttribute("responseText").match(/<meta.*?\Wcharset\s*=\s*(\S+?)["'>\s]/i); charResult = charResult ? charResult[1] : "gb2312";
复制代码 代码如下:

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