01 2019 档案

摘要:组件绑定事件时 1. 普通组件绑定事件不能添加.native, 添加后事件失效 2. 自定义组件绑定事件需要添加.native, 否则事件无效 阅读全文
posted @ 2019-01-31 09:01 254980080 阅读(1209) 评论(0) 推荐(0) 编辑
摘要:vue不推荐直接在子组件中修改父组件传来的props的值,会报错 [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-rende 阅读全文
posted @ 2019-01-28 17:41 254980080 阅读(7205) 评论(1) 推荐(2) 编辑
摘要:或是 在main.js中接收,test.js使用export default 向外暴露的成员 注意: 1、export default 向外暴露的成员,可以使用任意变量来接收 2、在一个模块中,export default 只允许向外暴露一次 3、在一个模块中,可以同时使用export defaul 阅读全文
posted @ 2019-01-25 20:44 254980080 阅读(63531) 评论(1) 推荐(8) 编辑
摘要:1、根目录配置 vue.config.js, 设置入口文件: index.js 2、index.js 3、APP.vue 阅读全文
posted @ 2019-01-25 19:39 254980080 阅读(1259) 评论(0) 推荐(0) 编辑
摘要:1、render方法的实质就是生成template模板(在#app的作用域里) 2、render是vue2.x新增的一个函数, 这个函数的形参是h 3、vue调用render方法时, 会传入一个createElement函数作为参数(也就是h的实参是createElement函数) 4、create 阅读全文
posted @ 2019-01-25 19:23 254980080 阅读(1043) 评论(0) 推荐(0) 编辑
摘要:preset:预设 vue create demo01 过程中,会保存预设,自动保存着 .vuerc 文件中 .vuerc 文件的位置:C:\Users\Administrator C:\Users\Administrator 阅读全文
posted @ 2019-01-25 16:44 254980080 阅读(988) 评论(0) 推荐(0) 编辑
摘要:区别: 1.行内元素与块级函数可以相互转换,通过修改display属性值来切换块级元素和行内元素,行内元素display:inline,块级元素display:block。 2.行内元素和其他行内元素都会在一条水平线上排列,都是在同一行的; 块级元素却总是会在新的一行开始排列,各个块级元素独占一行, 阅读全文
posted @ 2019-01-18 14:03 254980080 阅读(279) 评论(0) 推荐(0) 编辑
摘要:Chrome中调试网站,会出现 这是由 crxMouse Chrome™ 手势 引起的,关闭即可 阅读全文
posted @ 2019-01-17 17:38 254980080 阅读(497) 评论(0) 推荐(0) 编辑
摘要:call_user_func_array — 调用回调函数,并把一个数组参数作为回调函数的参数 范例 以上例程的输出类似于: foobar got one and twofoo::bar got three and four 阅读全文
posted @ 2019-01-17 15:24 254980080 阅读(396) 评论(0) 推荐(0) 编辑
摘要:材料 服务器:百度云虚拟主机(nginx+php7.0+linux) Thinkphp 5.1 问题 百度云默认目录为/webroot,但是我们的需求是将项目存放到/webroot/public下面。 方案 配置bcloud_nginx_user.conf 代码: 注意: 当出现重复配置时,bclo 阅读全文
posted @ 2019-01-04 17:21 254980080 阅读(1381) 评论(0) 推荐(0) 编辑
摘要:文件-设置-Directories 选中:application 点击顶部:Sources,右侧会出现 Source Floders 配置项 点击:p进行设置 输入app\ 阅读全文
posted @ 2019-01-02 09:21 254980080 阅读(581) 评论(0) 推荐(0) 编辑
摘要:1、安装apache 1.1 安装apache 1.2 启动apache服务 1.3 设置httpd服务开机启动 1.4 查看服务状态 [root@nmserver-7 ~]# systemctl status httpd 1.5 防火墙设置开启80端口 这里可能会提示错误 1.通过systemct 阅读全文
posted @ 2019-01-01 17:28 254980080 阅读(197) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示