05 2021 档案
摘要:<div class="item_box" ref="scroll"> 内容 </div> item_box 滚动盒子跳转页面你的时候缓存页面滚动高度 this.scroll = this.$refs.scroll.scrollTop 当页面显示的时候, 设置滚动高度 activated() { t
阅读全文
摘要:-webkit-overflow-scrolling: touch; overflow-scrolling: touch; 给body 加上就行了
阅读全文
摘要:{ "pages": [ { "path": "pages/index/index", "style": { "navigationBarTitleText": "uni-app", "navigationBarBackgroundColor": "#c7edcc" } } ], "subPacka
阅读全文
摘要:import { Toast } from 'mint-ui' function selectText(textbox, startIndex, stopIndex) { if (textbox.createTextRange) { // ie const range = textbox.creat
阅读全文
摘要:发现很多人学java都容易碰到这个问题, 示范代码 public class demo { public static void main(String[] args) { System.out.printIn("你好 世界"); } } 代码看上去是没有问题的, 但是编译的时候就有问题了 愿意其实
阅读全文
摘要:onLaunch: function () { const params = wx.getLaunchOptionsSync(); let str = params.query ? params.query.q : ""; if (str) { str = decodeURIComponent(st
阅读全文