我的代码
在1.4下面正确执行,在1.5下面错误, 要怎么修改?function CreateGoods_extattr_talbe2() {
if (eat_id > 0) {
$.ajax({
type: 'POST',
contentType: 'application/json',
url: 'http://localhost/test/WebService/Goods.asmx/Creategoods_extattrTable',
data: '{eat_id:' + eat_id + ',good_id:' + good_id + '}',
dataType: 'json',
cache: false,
success: function(result) {
$('#goods_extattrTable').html(result.d);
//$("#ProductAttritue .tabs").tabs("#ProductAttritue div.panes > div"); },
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert(XMLHttpRequest["responseText"]); }
}); } else {
$('#goods_extattrTable').html(''); } }
在1.4下面正确执行,在1.5下面错误, 要怎么修改?function CreateGoods_extattr_talbe2() {
if (eat_id > 0) {
$.ajax({
type: 'POST',
contentType: 'application/json',
url: 'http://localhost/test/WebService/Goods.asmx/Creategoods_extattrTable',
data: '{eat_id:' + eat_id + ',good_id:' + good_id + '}',
dataType: 'json',
cache: false,
success: function(result) {
$('#goods_extattrTable').html(result.d);
//$("#ProductAttritue .tabs").tabs("#ProductAttritue div.panes > div"); },
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert(XMLHttpRequest["responseText"]); }
}); } else {
$('#goods_extattrTable').html(''); } }
alert(XMLHttpRequest["responseText"]);
这里执行了