import x2js from 'x2js' //xml数据处理插件; Vue.prototype.$x2js = new x2js() //创建x2js对象,挂到vue原型上. 3.在组件中使用.
確定! 回上一頁