Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
JQM ページ上の 2 つの js ファイル間の競合を停止する方法を見つけようとしています。js ファイルを 1 つの data-role=page に対してのみロードする方法はありますか?
IDたとえば、' でページを呼び出します。
ID
$('[data-role=page]#PageID').on('pagebeforeshow', function () { alert('Page with ID ' + $(this)[0].id + ' is here!' });