Vue知识点
以后灬会緈福
这个作者很懒,什么都没留下…
展开
-
父组件给子组件传值,子组件在mounted里面打印为空
父组件给子组件传值,子组件在mounted里面打印为空第一种:使用v-if ,等到父组件传值不为空时再传入https://www.cnblogs.com/huancheng/p/9636595.html第二种:子组件中监听数组长度,做出相应操作父组件给子组件传值,在HTML中for循环可以渲染数据没有问题,但是我此时在子组件中的mounted用到这个数据时,打印出来为空这是因为子组件挂载的时候,这个itemList父组件里也是为空的,后来父组件做了请求之类的工作后,更新了..转载 2020-11-25 18:43:59 · 3705 阅读 · 0 评论 -
关于vue 中别名的使用
1.vue别名前~的用途https://blog.csdn.net/u013299635/article/details/908159502. vue 别名在js,css,html中的使用方法https://blog.csdn.net/weixin_42060658/article/details/103654249?utm_medium=distribute.pc_relevant.none-task-blog-title-1&spm=1001.2101.3001.4242http转载 2020-09-23 20:56:22 · 671 阅读 · 0 评论 -
vue 知识点
localhost和0.0.0.0的区别:默认是localhost,如果你希望服务器外部可访问,需要设置成0.0.0.0,详情如下https://blog.csdn.net/zwkkkk1/article/details/84064895原创 2020-09-21 09:14:11 · 101 阅读 · 0 评论 -
按钮置底,且居中示例
Html 代码<div class="approve_true"> <div class="buttonBox"> <yd-button size="large" @click.native="submit" bgcolor="#1F65DA" color="#fff" >同意</yd-button> <yd-button size="large" @click.native="s原创 2020-06-18 14:23:19 · 3780 阅读 · 0 评论 -
cordova + vue 真机账号登录解决过程
1.将localhost改为本地IP,发现无法访问,其实主要是与index.html 中的head配置有关,想要在电脑网页上访问,用1想要在真机上利用IP访问,用2.2.继上一篇,根据cordova本身的index.html的meta信息拷入后发现登录页提示Note that 'connect-src' was not explicitly set, so 'default-src'...原创 2020-04-01 16:40:46 · 561 阅读 · 0 评论 -
vue+cordova 调用摄像头并对vue项目进行打包
参考文章:https://blog.csdn.net/u011042316/article/details/83828371 https://segmentfault.com/a/1190000014101362建立vue项目和cordova项目步骤略过....---------------------以下修改的都是vue项目-----------...原创 2020-03-31 16:18:03 · 1182 阅读 · 0 评论 -
使用KeepAlive解决了 详情页面跳转回列表页面,保持列表原始状态
步骤:https://blog.csdn.net/leileibrother/article/details/79376502?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task中间遇到了transition和KeepAlive结合使用的...原创 2020-03-10 11:12:41 · 515 阅读 · 0 评论 -
vue 箭头函数
ES6中的箭头函数:参数=>函数体;(1)箭头函数和普通函数对比普通函数:function test(var param){alert("这是传过来的参数"+param);} 箭头函数:param=>alert("这是传过来的参数"+param).普通函数:function test(var param){return param*...原创 2020-03-09 22:08:46 · 262 阅读 · 0 评论