简体   繁体   中英

In jQuery.getScript(), how do we set the charset type to utf-8?

jQuery.getScript("url", function(){});

jQuery.getScript(“ url”,function(url,callback,charset)..可以这样做吗?

Charset is not intended controlled on getScript function, you just control your page charset type on the page it self or via server side

Try to add <meta charset="utf-8"> on html head tag.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM