復(fù)制代碼 代碼如下: var charResult = this.getAttribute(“responseText”).match(/<meta.*?Wcharsets*=s*(S+?)[“‘>s]/i); charResult = charResult ? charResult[1] : “gb2312”;