微信小程序转uni-app项目
- 1880
- 2020/12/16 22:20:58
原文链接:https://ask.dcloud.net.cn/article/36037 项目源码:https://github.com/zhangdaren/miniprogram-to-uniapp 处理方式:https://www.cnblogs.com/Can-daydayup/p/12阅读全文
uni-app 搜索、历史记录功能简单实现
- 3901
- 2020/12/11 23:19:01
实现功能 1.点击搜索,把搜索的值存入本地记录,并展示 2.搜索相同的值,要删除旧数据,把新数据放进数组首位 3.清空历史记录 <template> <view> <!--搜索框--> <viewclass="search"> 阅读全文
asp无限级调用分类显示
- 2568
- 2020/11/20 21:47:17
点击下载示例压缩包:ASPsnakDemo.rar <%@LANGUAGE="VBSCRIPT"CODEPAGE="65001"%> <!doctypehtml> <html> <head> <metacharset="ut阅读全文
uni-app自定义loading组件
- 5313
- 2020/10/26 13:46:09
这个是uni-app自定义loading的组件,以下是代码 <template> <!--visible控制toast的显隐,text为提示文本--> <viewclass="loading-toast"v-if="visible"> <阅读全文
uni-app一个像商城分类中心一样的联动侧边栏导航分类
- 4343
- 2020/10/1 17:07:20
<template> <view> <viewclass="ld"> <viewclass="left"> <scroll-view:scroll-y="true":scroll-with-animation="true":scroll-阅读全文
uni-app实现tab选项卡
- 3933
- 2020/9/27 16:09:39
HTML <viewclass="end-title"> <view@tap="change(0)":class="{btna:btnnum==0}">基本信息</view> <view@tap="change(1)":class="{btn阅读全文
uni-app的父与子页面传递参数之属性Props字段类型讲解
- 4222
- 2020/9/25 22:35:17
Vue.component('myComponent',{ props:{ //基础类型检测(`null`意思是任何类型都可以) propA:Number, //多种类型 propB:[String,Number], //必传且是字符串 propC:{ type:String, r阅读全文
uni-app判断当前客户端是安卓还是ios还是其它平台
- 7405
- 2020/9/25 20:52:28
uni-app是一款强大的前端框架,可以打包原生app、手机h5页面、微信小程序。 但是有一个问题就是原生的app和微信小程序是有一定的区别的,因为app有标题栏,返回键,而微信小程序自带了,那判断平台的语法就很重要了 1、uni-app编译为小程序时均为生产环境,可用过uni.getS阅读全文
uni-app基础知识事件传参(动态参数演示)
- 2825
- 2020/9/25 20:50:18
<template> <view> <viewv-for="(item,index)instudents"class="persons"@click="menuClick"v-bind:id="index">{{index}}-{{item.name}}<阅读全文
uni-app基础知识事件绑定@click与@tap点击事件区别
- 15303
- 2020/9/25 20:49:33
我最喜欢的操作是@tap="这个是自定义点击事件"总觉得比@click好用。 tap和click的区别: 两者都会在点击时触发,但是在web手机端,clikc会有200-300ms的延时,所以要用tap代替click作为点击事件,singleTap和doubleTap分别作为单次点击和双击,阅读全文
uni-app基础知识页面事件与web事件的对比
- 2097
- 2020/9/25 20:44:34
事件映射表,左侧为WEB事件,右侧为uni-app对应事件 { click:'tap', touchstart:'touchstart', touchmove:'touchmove', touchcancel:'touchcancel', touchend:'touchend',阅读全文
uni-app基础知识使用hidden条件显示
- 3803
- 2020/9/25 20:35:10
<template> <view> <viewv-for="(item,index)instudents"> <viewclass="persons">{{index}}-{{item.name}}</view> </view阅读全文
uni-app基础知识条件渲染
- 1335
- 2020/9/25 20:33:42
<template> <view> <viewv-for="(item,index)instudents"> <viewclass="persons">{{index}}-{{item.name}}</view> </view阅读全文
uni-app基础知识列表渲染
- 1784
- 2020/9/25 20:32:15
<template> <view> 这个就是开始循环的段落 <viewv-for="(item,index)instudents"> <viewclass="persons">{{index}}-{{item.name}}</view&g阅读全文
uni-app基础知识数据绑定
- 1463
- 2020/9/25 20:29:10
变量赋值: <script> exportdefault{ data:{ title:'Hello', name:'hcoder' },..... 在视图中使用{{}}调用变量: <template> <viewclass="content阅读全文
vue uni-app判断空字符串/null/undefined或者有误字段
- 11319
- 2020/9/16 8:41:37
如果你想判断是否为「有效值」 你可以用 if(value){ //写上你要操作的行为 } 这样将会过滤掉: -null -undefined -NaN -empty(string)'' -0 -false 然后你可以用来判断空字符串/null/阅读全文
uni-app自定义组件调用
- 2429
- 2020/9/15 15:31:39
uni-app自定义组件 步骤1.在项目中新建一个component文件夹,用来存放公用组件 在新建组件中需要在template中为组件绑定名称,如itemMoive <templatename="itemMoive"> <viewclass="item"> 阅读全文
uni-app实现上拉加载,下拉刷新(下拉带动画)
- 7101
- 2020/9/15 15:20:52
直接展示代码,uni-app的上拉加载动画 1.在pages.json添加允许下拉刷新 { "path":"pages/lookuser/lookuser", "style":{ "navigationBarTitleText":"用户日志", "enablePullDownRe阅读全文
微信小程序操作json与数组增加
- 1542
- 2020/9/2 16:24:12
//微信小程序操作json增加 varudata=p; udata.ceseziduan="asssssssssssss"; console.log(udata); //微信小程序操作数组增加 varnewArr=[]; newArr.push({demotext:'123789'}阅读全文
canvas绘制的文字如何换行
- 5496
- 2020/6/17 14:20:58
<html> <head> <title>canvas绘制的文字如何换行</title> <styletype="text/css"> </style> </head> <body>阅读全文