我知道我们可以使用参数从 jquery 调用 php 脚本,如下所示。
$('.likelink').click(function() {
$.get("testapache1.php", { dom: "<?php echo $_GET['dom']; ?>" , link: $(this).text() , pro: $(this).attr('name') }, function(resp) {
alert(resp);
});
});
我在点击事件中收到如下错误。
GET http://lsdom.qbc.uws/testapache1.php?dom=10.3.2.0&link=acer%0A&pro=acer 404 Not Found 4ms
我只想要我的链接
GET http://lsdom.qbc.uws/testapache1.php?dom=10.3.2.0&link=acer&pro=acer
我的 jquery 脚本中可能有什么错误?请帮我。