Html中载入含中文字符的js文件时出现中文乱码的解决办法 1.可以用<meta http-equiv="content-type" content="text/html; charset=gb2312">2.可以将js文件保存为utf-8格式,这样<meta http-equiv="content-type" content="text/html; charset=utf-8">便不会有乱码