1

说明:jquery-1.3.2.min.js,第19行字符27021

行:J.open(G,M.url,M.async)

本地主机(denwer)上的网站。即 9。

Chrome、Opera、Safari、Mozilla 没有问题。

代码:

function myFunction() {
    $.ajax({
        type: "POST",
        url: "http://mysite.com/license/index.php",
        data: "key=<?php echo $c_hash; ?>",
        cache: true,
        success: function(response){
            if (response === '<?php echo $c_hash; ?>') {
                $("#thisdiv").html('<table><tr><td align="left"><a href="<?php echo str_replace("&", "&amp;", $back); ?>" class="button" style="text-decoration: none;"><span><?php echo $button_back; ?></span></a></td><td align="right"><a onclick="formSubmit();" class="button"><span><?php echo $button; ?></span></a></td></tr></table>');
            } else {
                $("#thisdiv").html('<div style="display: table;"><div><p style="margin: 0;">There is license check error.</p></div><div style="float: right;"><a href="<?php echo str_replace("&", "&amp;", $back); ?>" class="button" style="text-decoration: none;"><span><?php echo $button; ?></span></a></div></div>');
            }
        }, 
        error: function(){
                $("#thisdiv").html('<div style="display: table;"><div><p style="margin: 0;">There is license check error.</p></div><div style="float: right;"><a href="<?php echo str_replace("&", "&amp;", $back); ?>" class="button" style="text-decoration: none;"><span><?php echo $button; ?></span></a></div></div>');
        }
    });
};
myFunction();

有人可以帮忙吗?

4

0 回答 0