![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
uni-app
危笑qwq
这个作者很懒,什么都没留下…
展开
-
bug---uniapp报错Component template should contain exactly one root element
错误:Component template should contain exactly one root elementIf you are using v-if on multiple elements, use v-else-if to chain them instead.解决:template标签下必须有一个view标签套在其他元素外面不能是一个view和一个button并列...原创 2021-04-14 15:01:36 · 159 阅读 · 0 评论 -
uni-app搜索功能
搜索功能实现获取输入搜索框的关键词inputchange函数的参数e就是输入的文字,自定义变量keword将他取回来 <view>{{keyword}}</view>data() { return { value: '', keyword:'' } }, onNavigationBarSearchInputChanged(e) { console.log(e); this.keyword=e.text; },原创 2021-02-28 12:32:34 · 4372 阅读 · 0 评论 -
uni-app学习
今天刚了解uni-app这个框架,能适配所有厂的小程序,incredible~page.json配置程序外观(例如黑色模式,下拉的背景色,下拉刷新提示的样式等)创建页面在pages里面创建页面,和wx小程序差不多,vue将js,html,css集成在一个vue里面template里面不能有很多并列的view,必须是树状关系,大套小在page.jsonl里面注册刚刚创建的页面底部导航条tabbar也是在pages.json中组件组件就是H5中的标签<text写文本<原创 2021-02-27 22:06:59 · 94 阅读 · 0 评论 -
uni-app之组件/跳转传参/组件通信
组件类似于微信小程序的模板,微信小程序里叫templatestest.vue<template> <view> 这是tst组件 </view></template><script> export default { data() { return { }; } }</script><style></style>在要是用的页面注册,import原创 2021-02-28 22:29:34 · 1521 阅读 · 0 评论