FileReader读取.jsx文件,中文乱码问题 已解决

改一行JavaScript代码即可,

//reader.readAsText(file); 这段不行,改成下面的即可
reader.readAsText(file,"GB2312");