1$.ajax({
2 url:"http://demo.24on.cn:29000/GetLabelList.ashx",
3 type:"GET",
4 dataType:"JSON",
5 timeout:10000,
6 async:false,
7 success:function(res){
8 console.log(res);
9 },
10 error:function(){
11 console.error("获取失败!");
12 }
13});
1$.ajax({
2 url:"http://[ydb_webservice_url]: [ydb_webservice_port]/GetPrintServiceList.ashx",
3 type:"GET",
4 dataType:"JSON",
5 timeout:10000,
6 async:false,
7 success:function(res){
8 console.log(res);
9 },
10 error:function(){
11 console.error("获取失败!");
12 }
13});
{{interText1}}
{{interText2}}
{{interText3}}
{{interText4}}
{{interText5}}
{{interText6}}
{{interText7}}
{{interText8}}
1 "$.ajax({
2 url:"http://demo.24on.cn:29000/Print.ashx?id=4D17C783-FDB8-4f5a-ABCF-CBBF70165808&service=1B7581675CA7B787A1E3F217B1BF73F8&printer=pdfFactory%20Pro",
3 type:"POST",
4 data:{data:'[{ "条码": "98798", "名称": "苹果", "重量": "0.5kg"}]'},
5 dataType:"JSON",
6 timeout:10000,
7 async:false,
8 success:function(res){
9 if(res.ret== 0);
10 {
11 console.log("打印成功!");
12 }
13 },
14 error:function(){
15 console.error("获取失败!");
16 }
17});"