微信小程序open-data使用
2021/4/11 22:55:17
本文主要是介绍微信小程序open-data使用,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
微信小程序open-data使用
<template> <view class="content"> <view class="con"> <!-- 用户头像 --> <open-data type="userAvatarUrl" class="con-avatar"></open-data> </view> <view class="con"> <!-- 用户昵称 --> <open-data type="userNickName" class="con-userNickName" lang="zh_CN"></open-data> </view> <!-- 用户性别 --> <open-data type="userGender" lang="zh_CN"></open-data> <!-- 用户所在省份 --> <open-data type="userProvince" lang="zh_CN"></open-data> <!-- 用户所在城市 --> <open-data type="userCity" lang="zh_CN"></open-data> <view class=""> <button open-type="openSetting" bindopensetting="callback">打开设置页</button> </view> </view> </template>
这篇关于微信小程序open-data使用的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-09-28uniapp 小程序获取到数据库的换行符怎么展示-icode9专业技术文章分享
- 2024-09-20微信小程序全栈项目实战:从零开始的全面指南
- 2024-09-20微信小程序项目实战:零基础入门教程
- 2024-09-19微信小程序项目中miniprogram_npm文件跟node_modules文件的差别-icode9专业技术文章分享
- 2024-08-27小程序 单行显示,超出部分省略号显示的方法代码-icode9专业技术文章分享
- 2024-08-27微信小程序如何获取到特种设备的刘海屏高度-icode9专业技术文章分享
- 2024-08-27微信小程序如何获取苹果手机底部一横线高度信息方法代码-icode9专业技术文章分享
- 2024-08-27微信小程序 顶部状态栏标签背景为none但还是看不到状态栏什么原因-icode9专业技术文章分享
- 2024-08-21微信小程序全栈入门:从零开始的一站式指南
- 2024-08-21微信小程序入门:轻松打造你的第一款小程序