07 2020 档案

摘要:####功能介绍:用户输入emoji表情,如输入法里的附带的表情,然后前端这里编码这些表情成特定格式的字符,传到后端。之后从接口拿到后直接html渲染即可。 ####问题所在:移动端用户输入emoji表情,如果未做编码就提交到后端的话,是不能成功提交的。需要先编码才行。 ###编码 /** * 用于 阅读全文
posted @ 2020-07-24 10:38 huihuihero 阅读(1923) 评论(1) 推荐(0) 编辑
摘要:####子组件,有一个childMethod方法 <template> <view> </view> </template> <script> export default { data(){ return { } }, onLoad(){ }, methods:{ childMethod() { 阅读全文
posted @ 2020-07-21 17:37 huihuihero 阅读(463) 评论(0) 推荐(0) 编辑
摘要:####将uniapp的uni.createSelectorQuery()方法与uni.pageScrollTo(OBJECT)方法结合使用 更详细用法见官方文档: uni.createSelectorQuery()方法: https://uniapp.dcloud.io/api/ui/nodes- 阅读全文
posted @ 2020-07-21 15:31 huihuihero 阅读(8587) 评论(0) 推荐(0) 编辑
摘要://判断安卓还是iOS judgePlatForm(){ let platform=uni.getSystemInfoSync().platform if(platform=='ios'){ console.log('我是iOS') }else if(platform=='android'){ co 阅读全文
posted @ 2020-07-17 17:39 huihuihero 阅读(5936) 评论(0) 推荐(1) 编辑
摘要:uni.setNavigationBarTitle({ title:'嘻嘻嘻' }) 文档地址: https://uniapp.dcloud.io/api/ui/navigationbar?id=setnavigationbartitle 阅读全文
posted @ 2020-07-13 15:48 huihuihero 阅读(3109) 评论(0) 推荐(0) 编辑
摘要:####场景一:用户点击按钮后动态切换按钮选中样式(如图) <view class="state-btn-content"> <view @tap="selectState" data-state="over" :class="[whichSelected=='over'?'state-btn-se 阅读全文
posted @ 2020-07-02 10:43 huihuihero 阅读(11002) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示