首先在script函数中import目标函数的组件名,然后函数名.method.函数名即可实现,示例:
用户上传完信息后需要关闭上传窗口同时刷新原来的目录页面,此时需要调用datalist中的loadcatergory函数,代码如下:
Datalist.methods.loadcategory();
首先在script函数中import目标函数的组件名,然后函数名.method.函数名即可实现,示例:
用户上传完信息后需要关闭上传窗口同时刷新原来的目录页面,此时需要调用datalist中的loadcatergory函数,代码如下:
Datalist.methods.loadcategory();