![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微信小程序
文章平均质量分 58
weixin_44453127
这个作者很懒,什么都没留下…
展开
-
uniapp搭建微信小程序 ——创建项目
1、通过vue-cli创建vue create -p dcloudio/uni-preset-vue my-project2、选择模板3、运行uniappnpm run dev:mp-weixin4、微信小程序导入项目在项目中的dist——>dev——>mp-weixin5、在app.vue中的style内引入全局样式wxss@import './xxx.wxss'...原创 2020-05-18 16:45:45 · 898 阅读 · 0 评论 -
微信小程序常见内置组件text和button
微信小程序常见内置组件1. Text组件1、selectable 文本长按是不是能被选中 true or false<text selectable=‘{{true}}’>hello coderwhy\n</text>2、 space 决定文本空格的大小 nbsp; emsp; ensp<text space=‘nbsp’>hello ...原创 2019-10-06 21:13:40 · 1028 阅读 · 0 评论 -
微信小程序选择手机相册里的图片并上传到页面
微信小程序获取手机相册里的图片并传到页面上index.wxml代码// 相册中的照片<button bindtap=‘handleChooseAlbum’>选中图片</button><image arc=“{{imagePath}}”/>2.index.js代码Page({ data : { imagePath : ‘’ }, han...原创 2019-10-06 22:58:28 · 2003 阅读 · 0 评论