如何使用nuxt js将自己的js用作插件

vuejs2 Vue.js

凯西里

2020-03-26

我正在使用nuxt js。我在plugins文件夹中有一个helper.js脚本,该脚本具有一个简单的Test()方法。现在我如何才能从页面使用此Test()方法。

helper.js

export default function Test() {
   return 'This is test'
}

第3748篇《如何使用nuxt js将自己的js用作插件》来自Winter(https://github.com/aiyld/aiyld.github.io)的站点

0个回答

问题类别

JavaScript Ckeditor Python Webpack TypeScript Vue.js React.js ExpressJS KoaJS CSS Node.js HTML Django 单元测试 PHP Asp.net jQuery Bootstrap IOS Android