<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";
栏 目:
下一篇:Powershell小技巧之通过EventLog查看近期电脑开机和关机时间
本文标题:<meta>正则
本文地址:http://www.codeinn.net/misctech/58139.html






