|
1 |
$.getScript("https://xx.jp/f_common.js"); |
を実行した時、
Uncaught TypeError: Cannot read property 'menu' of undefined
のようなエラーが発生しました。
調べてみると、「$.getScriptは非同期操作のみをサポートしている」とのことです。
以下のコードに変更したら、無事にエラーがでなくなりました。
|
1 2 3 4 5 |
$.ajax({ url: 'https://xx.jp/f_common.js', async: false, dataType: "script", }); |


![Error: Syntax error, unrecognized expression: a[href^=#]](https://pct.unifas.net/wp-content/themes/keni80_wp/images/no-image.jpg)
