我有以下代码:传递PHP变量到JavaScript功能
FB.getLoginStatus(function (response) {
if (response.status === "connected") {
FB.api("me/bookvote:download", "post", {
}, //Missing a , here?
然而
,我仍然得到:
Uncaught SyntaxError: Unexpected identifier
for book: "<?php echo "http://mysite.xom/auction_details.php?name=$item_details["name"]&auction_id=$item_details["auction_id"]";?>",
这可能是错误的,我的PHP变量JavacScript?
看看代码中的颜色,你确定你有这些引号吗? – adeneo 2013-03-21 22:36:47
啊对不起,我的编辑器很烂并且没有突出显示>< – user2185501 2013-03-21 22:39:41
检查浏览器中呈现的内容 – 2013-03-21 22:41:58