var url = "http://localhost:8090/iserver/services/***/rest/data";
function fieldsService() {
var param = new L.supermap.FieldParameters({
datasource: "***",
dataset: "***",
tableName:" ***"
});
new L.supermap.FieldService(url).getFields(param, function (serviceResult) {
console.log(serviceResult)
})
}
然后报错:
iclient-leaflet-es6.min.js:36 Uncaught TypeError: Cannot read properties of undefined (reading 'split')
at Object.urlPathAppend (iclient-leaflet-es6.min.js:36:3477)
at Hs.processAsync (iclient-leaflet-es6.min.js:604:253)
at i.getFields (iclient-leaflet-es6.min.js:1631:23301)
at fieldsService (***.html:79:42)
at ***.html:40:5