tnblog
首页
视频
资源
登录

uniapp页面跳转传递参数过长

前言页面传递参数过长如果需要传递的参数content过长,传递的时候会有问题所以使用encodeURIComponent来传递uni.navigateTo({ url:`../Fenleicontent/Fenleicontent?content=${encodeURIComponent(JSON.stringify(content))}` })接收如果传递的参数中有%,?,#,&,-,传递时会报错所以要将危险的...

2021-06-14 浏览(10501)

uni-app使用全局变量,全局方法

前言全局变量全局变量关键字:globalData使用全局变量关键字:getApp().globalData全局方法引入全局方法:import * as 名称 from 路径定义公共函数:语法:Object.keys(名称).forEach(key=>{ Vue.prototype[key]=util[key] })使用方法this.方法名回调函数then.(a=>{})

2021-05-24 浏览(9959)

uniapp APP开发基础

前言uniapp是基于vue.js实现的,代码实现方法不能用jQuery的思路去解决问题,基本使用template: 模板view: 视图,使用时把view当成HTML里的div就行<template> <viewclass="container"> <viewclass="title">TNBLOG_APP <viewclass="sub-title"> ...

2021-05-21 浏览(5951)

;
菜的像徐坤
排名
6
文章
6
粉丝
16
评论
8
{{item.articleTitle}}
{{item.blogName}} : {{item.content}}
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2026TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:50010702506256
欢迎加群交流技术