Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
F12 c onsole.log顯示上面的警告;
警告引起原因,是因為在使用<script ……></script>這種方式引入的js 中使用了ajax .
而一般來講,在這種情況下,async 應該設置為true 而不是flase.
Google 了好多解決,這算是個總結吧。
文章來源:劉俊濤的博客
