防伪查询接口
  • 说明:
  • - 采用jquery ajax方式(请引用jquery文件)
  •    └参数说明:①防伪编码    ②企业Key
  •    └返回说明:查询结果
  •    └示例代码: <html> <head> <title>防伪查询接口示例</title> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <lable>防伪编码:</lable> <input type="text" id="txt_code" /> <input type="button" id="bnt_query" value="确认查询" onclick="querycode()" /> <script type="text/javascript"> function querycode() { var getcode = $('#txt_code').val(); if (getcode.length > 0) { var url = "http://www.china-12365.com/Pages/Interface_Fangwei.ashx?callback=?"; var data = { code: getcode, key: "企业key" }; $.getJSON(url, data, function (backdata) { alert(backdata.result); }); } } </script> </body> </html>
  •    └备注说明:企业Key请联系技术人员索要
| Copyright © 2015 中国产品质量云追溯平台 版权所有 |