Linking external JS in UIWebView in iOS 5

你离开我真会死。 提交于 2019-12-10 22:58:09

问题


I am loading an html that includes an external JS like this,

<script src="external.js" / >

This used to work fine, till iOS4.3, but suddenly stopped working in iOS5.0. Based on my understanding it is because UIWebview in iOS 5 now supports html5 which specifies that you "must" put a closing tag instead of relying on '/' (self-closing?) that we are used to put at the end when there is no content in tag.

Let me know if my understanding is correct?

来源:https://stackoverflow.com/questions/7820934/linking-external-js-in-uiwebview-in-ios-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!