Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

纯js怎么不支持转换呢? #2

Closed
myvipbackup2 opened this issue Jul 21, 2017 · 4 comments
Closed

纯js怎么不支持转换呢? #2

myvipbackup2 opened this issue Jul 21, 2017 · 4 comments
Assignees

Comments

@myvipbackup2
Copy link

如果打开一个纯js的页面 如 baidu.com/xxx.js 这样的页面,中文显示乱码但是不支持调整文本编码为UTF-8呢?没有反应

@jinliming2
Copy link
Owner

纯js目前是不支持的。

如果有需求的话我可以添加这个功能(不过得先调研一下可行性。。。)

请问你说的纯js的页面是指直接查看js源代码的页面,还是使用ReactJS之类编写的网站呢?(个人目前理解是前一种)

@jinliming2 jinliming2 self-assigned this Jul 23, 2017
@jinliming2
Copy link
Owner

你好,我刚刚测试了一下,使用现有的插件代码是可以直接支持转换js文件编码的。
请问你可以提供一个转换无效的页面给我测试一下吗?

@myvipbackup2
Copy link
Author

@jinliming2 你好,比如这个 http://webresource.c-ctrip.com/ResTourOutieOnline/R9/js/vacation/app/search_3_0/search_3_0.js 中文就是乱码不管怎么设置都没用,Mac OS Chrome 61

jinliming2 added a commit that referenced this issue Jul 31, 2017
修复:部分纯js内容的Content-Type为application/x-javascript而导致匹配失败不转换编码的问题 #2
Merge branch 'developer'
jinliming2 added a commit that referenced this issue Jul 31, 2017
修复:部分纯js内容的Content-Type为application/x-javascript而导致匹配失败不转换编码的问题 #2
Merge branch 'developer'
@jinliming2
Copy link
Owner

你好,我定位到问题了,已经提交代码,请等待Chrome商店更新吧~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants