How to automatically allow blocked content in IE?

前端 未结 7 1543
广开言路
广开言路 2020-11-27 04:35

I am using below code for sample menu.

    

Tree Demo


        
相关标签:
7条回答
  • 2020-11-27 05:08

    There is a code solution too. I saw it in a training video. You can add a line to tell IE that the local file is safe. I tested on IE8 and it works. That line is <!-- saved from url=(0014)about:internet -->

    For more details, please refer to https://msdn.microsoft.com/en-us/library/ms537628(v=vs.85).aspx

    <!DOCTYPE html>
    <!-- saved from url=(0014)about:internet -->
    <html lang="en">
        <title></title>
        <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
        <script>
            $(document).ready(function () {
                alert('hi');
    
            });
        </script>
    </head>
    <body>
    </body>
    </html>
    
    0 讨论(0)
提交回复
热议问题