标签:ajax 接口 pac gen .sh cname class head product
$.ajax( { url: ‘http://192.168.1.85:8080/api/Code/GetCodeProductInfo‘, type: ‘GET‘, beforeSend: function (request) { request.setRequestHeader("Token", "8D8433968E1B4052B9963C91EB8B581A"); }, dataType: ‘text‘, data: { code: $("#packCode").val() }, success: function (data) { data = eval(‘(‘ +data+ ‘)‘); console.log(data.data); if (data.code == 200) { $("#product_code").text(codeUrl); $("#register_code").text(data.data.registerCode); $("#generic_name").text(data.data.genericName); $("#shap").text(data.data.shap); $("#production_style").text(data.data.productionType); $("#production_date").text(data.data.productionDate); $("#production_batch").text(data.data.batchNo); $("#fit_crop").text(data.data.fitCrop); $("#description").text(data.data.description); $("#entName").text(data.data.entName); } }, error: function (data) { console.log("error"); } } ); });
标签:ajax 接口 pac gen .sh cname class head product
原文地址:https://www.cnblogs.com/siyunianhua/p/10644784.html