上一页 1 2 3 4 5 6 7 ··· 14 下一页
摘要: https://blog.csdn.net/weixin_41181778/article/details/106131081 阅读全文
posted @ 2021-11-05 21:29 男孩亮亮 阅读(551) 评论(0) 推荐(0) 编辑
摘要: 官方文档:https://cn.vuejs.org/v2/guide/mixins.html 混入 混入 (mixin) 提供了一种非常灵活的方式,来分发 Vue 组件中的可复用功能。一个混入对象可以包含任意组件选项。当组件使用混入对象时,所有混入对象的选项将被“混合”进入该组件本身的选项。 1、首 阅读全文
posted @ 2021-11-02 17:53 男孩亮亮 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 官方介绍:https://cn.vuejs.org/v2/guide/plugins.html#%E5%BC%80%E5%8F%91%E6%8F%92%E4%BB%B6 vue插件 插件通常用来为 Vue 添加全局功能。插件的功能范围没有严格的限制——一般有下面几种: 添加全局方法或者 proper 阅读全文
posted @ 2021-11-02 16:25 男孩亮亮 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 官方介绍:https://cli.vuejs.org/zh/guide/creating-a-project.html#%E6%8B%89%E5%8F%96-2-x-%E6%A8%A1%E6%9D%BF-%E6%97%A7%E7%89%88%E6%9C%AC 1、安装全局 @vue/cli-init 阅读全文
posted @ 2021-10-31 16:22 男孩亮亮 阅读(146) 评论(0) 推荐(0) 编辑
摘要: mutations在vue 中,只有mutation 才能改变state. mutation 类似事件,每一个mutation都有一个类型和一个处理函数,因为只有mutation 才能改变state, 所以处理函数自动会获得一个默认参数 state. 所谓的类型其实就是名字, 先看上一篇文章的例子: 阅读全文
posted @ 2021-10-31 15:37 男孩亮亮 阅读(664) 评论(0) 推荐(0) 编辑
摘要: 官方介绍:NPM支持 这里注意红色圈起来的模块,官方推荐使用uni-app 插件市场下载插件,因为要兼容多端,这里推荐一个uni-app UI框架 uview 还不错 阅读全文
posted @ 2021-10-22 12:51 男孩亮亮 阅读(1545) 评论(0) 推荐(0) 编辑
摘要: forever说明https://github.com/foreverjs/forever forever可以看做是一个nodejs的守护进程,能够启动,停止,重启我们的app应用。 A simple CLI tool for ensuring that a given script runs co 阅读全文
posted @ 2021-10-18 22:12 男孩亮亮 阅读(751) 评论(0) 推荐(0) 编辑
摘要: uviewui: https://www.uviewui.com/ 阅读全文
posted @ 2021-10-18 17:05 男孩亮亮 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 首先我们要明白一点,history 模式为什么刷新会404 1、vue,react :history模式是采用浏览器的历史记录,浏览器窗口有一个history对象,用来保存浏览历史 2、history渲染页面:当我们使用后端渲染页面: /build/index.html 时 (1)例如:nodejs 阅读全文
posted @ 2021-10-03 15:01 男孩亮亮 阅读(697) 评论(0) 推荐(0) 编辑
摘要: 官方定义: Vue.use( plugin ) 参数: {Object | Function} plugin 用法: 安装 Vue.js 插件。如果插件是一个对象,必须提供 install 方法。如果插件是一个函数,它会被作为 install 方法。install 方法调用时,会将 Vue 作为参数 阅读全文
posted @ 2021-09-29 18:26 男孩亮亮 阅读(1603) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 ··· 14 下一页