如下 定义了一个外部js文件,其中有一个function import lunaCommon from '../lunaCommon.js'; var ctx = wx.getStorageSync("ctx"); var filter = "/ms-code"; var apis = { //根据sc获取发货单 "findDispatchBill": function (data, success) { var url = ctx + filt
Components are one of the most powerful features of Vue. Let's take a look at how to write our first components and make use of them in a parent component. Create a component: // item-description.vue <template> <h1> This is item description &l