4 Star 24 Fork 6

s0611163/vue3-in-html

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.js 555 Bytes
一键复制 编辑 原始数据 按行查看 历史
s0611163 提交于 2个月前 . 修改
import { vuexStore, CHANGE_HELLOVUE3_VISIBLE } from './js/vuexStore.js'
import { loadVue } from './js/loadHtml.js'
async function init() {
let { useApp } = await loadVue('App.vue', 'app', undefined, true);
await useApp();
$('#btn').on('click', function () {
vuexStore.commit(CHANGE_HELLOVUE3_VISIBLE, !vuexStore.state.helloVue3Visible);
if (vuexStore.state.helloVue3Visible) {
$(this).val('隐藏HelloVue3组件');
} else {
$(this).val('显示HelloVue3组件');
}
});
}
init();
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/s0611163/vue3-in-html.git
git@gitee.com:s0611163/vue3-in-html.git
s0611163
vue3-in-html
vue3-in-html
master

搜索帮助