1

我在 jquery 中使用 $.ajax 函数。

我写了以下代码:

 <script>

$(document).ready(function() {

        var id =%%GLOBAL_ProductId%%;

                   var AllData="" ;
        $.ajax({


            url: "http://xtremeinspection.com/new2you4kids/app/android/get_product_size.php?productID=48",

            dataType: "jsonp",
            type: "POST",
            async: false,
            cache: true,
            contentType: "application/json; charset=utf-8",
            success: (function(data) {

                 AllData = html.fromhtml(data.d);

                 $("#home%%GLOBAL_ProductId%%").html(AllData);


            })
        });

});

</script>

我收到这样的错误:SyntaxError:标识符在数字文字之后立即开始

你能告诉我为什么我会收到这种类型的错误吗?

4

0 回答 0