1

JavaScript に関して、iOS 4.2.1 と以前のバージョンおよび新しいバージョンの iOS で根本的に異なる点はありますか?

私はサイトをテストしており、テストしたすべてのブラウザーとデバイスで jQuery は正常に動作していますが、iPod Touch テスト デバイスの iOS 4.2.1 では完全に無視されています。

必要に応じてコード例を提供できます。私は以下を使用しています:

https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min .js

どんな洞察も大歓迎です。

ありがとう!

4

2 に答える 2

2

I ended up finding the issue in this particular case. I had a lot of code to strip away, so I set up a test page with nothing but my jquery calls and the most basic jquery alert function.

It turns out out it was a difference between http and http*s*. As soon as I removed the "s", the reference error went away in the debug console.

I hope this helps someone else!

于 2012-06-01T11:42:27.117 に答える
0

私はちょうど今、この同じ問題に遭遇しました:

私は今、スクリプトをインポートするこのスタイルを使用するのが好きです

src="//code.jquery.com/jquery.min.js"

// スクリプトをロードするページが https の場合は https を実行し、それ以外の場合は http を実行します。

于 2014-06-27T23:06:34.167 に答える