Jquery load() only working in firefox?

前端 未结 2 765
慢半拍i
慢半拍i 2020-11-22 15:24

I am trying to get into jquery/ajax and I can\'t even believe I can\'t get past this first test. I\'m following an example I found at The Jquery API site and I followed it j

相关标签:
2条回答
  • 2020-11-22 16:21

    Try launching chrome / chromium with --allow-file-access-from-files flag set

    See How do I make the Google Chrome flag "--allow-file-access-from-files" permanent?

    0 讨论(0)
  • 2020-11-22 16:27

    Try

    <script>
        $(function(){
           $("#stage").load("list1.html");
        });
    </script>
    

    If still not works, check the Network section in the Developer Tools of your browser and see if there are any HTTP or Security errors.

    0 讨论(0)
提交回复
热议问题