标签:util transport nbsp orm rtu 应用 server return div
myTransport: function (data) { return $http({ url: config.server + ‘/order/transport‘, method: "post", data: data }) }, myTransportUpdate: function (data) { var url = util.format(‘{0}/order/{1}/transport‘, config.server, data.id); return $http({ url: url, method: "put", data: data }) },
代码当中的{0}和{1}就是占位符,分别给config.server和data.id占位
标签:util transport nbsp orm rtu 应用 server return div
原文地址:http://www.cnblogs.com/bertha-zm/p/6860677.html