jQuery .load() not working in IE10

前端 未结 1 1467
隐瞒了意图╮
隐瞒了意图╮ 2021-01-26 02:50

I am having trouble with IE 10 and jQuery .load(). I have a PHP page that I load once the website proper has loaded:

$(document).ready( function() { 
    $(\'#wo         


        
相关标签:
1条回答
  • 2021-01-26 03:23

    Try url encoding the character in the url

    $(document).ready( function() { 
        $('#words').html('<div id="loading"><div id="loading-text">Analyzing frequency data...</div><div id="loading-image"><img src="loading.gif"></div></div>');
        $('#words').load('translate.php?character='+encodeURIComponent('<?php echo $character1;?>'));
    });
    
    0 讨论(0)
提交回复
热议问题