<meta>正则


复制代码 代码如下:

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

« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3