2021年2月4日
摘要: 这里以react为例,vue差不多 render中随意定义一个 <div className={styles.commodity} key={index2} onTouchStart={this.start} onTouchMove={this.move} onTouchEnd={this.end} 阅读全文
posted @ 2021-02-04 10:20 哼着老调调 阅读(1244) 评论(0) 推荐(0) 编辑
  2021年1月28日
摘要: 类组件 const history = createBrowserHistory({ forceRefresh: true // 这个表示url更新会刷新页面,如果不添加不刷新 当然你也可以用js刷新 哪个效率高还没研究过 }); // 之后 定义方法触发即可 goSearch(a) { histo 阅读全文
posted @ 2021-01-28 15:17 哼着老调调 阅读(1196) 评论(0) 推荐(0) 编辑
  2021年1月27日
摘要: 组件嵌套了很多,传值过于麻烦,项目又着急,暂时粗暴一点解决~~~ 毕竟先解决问题,再优化嘛 componentDidMount() { this.props.history.listen(route => { console.log(route.search.slice(4)); // 这个rout 阅读全文
posted @ 2021-01-27 16:35 哼着老调调 阅读(918) 评论(0) 推荐(0) 编辑
  2021年1月22日
摘要: 父类组件 this.state = { checkAll: false, showState: true, list: [ { order: "日本药品馆", total: "3", money: "3223", checkCountry: false, commodity: [ { img: "1 阅读全文
posted @ 2021-01-22 16:23 哼着老调调 阅读(242) 评论(0) 推荐(0) 编辑
  2021年1月20日
摘要: 直接在index.js同级目录下创建server.js 别忘记安装必备的插件 npm i axios qs --save import axios from 'axios' import qs from 'qs' axios.defaults.baseURL = 'http://192.168.50 阅读全文
posted @ 2021-01-20 13:15 哼着老调调 阅读(1007) 评论(0) 推荐(0) 编辑
  2021年1月8日
摘要: java * 对象转bytes和bytes转对象 * * @project order * @fileName ByteUtil.java * @Description * @author light-zhang * @date 2019年5月16日 * @version 1.0.0 */ publ 阅读全文
posted @ 2021-01-08 15:42 哼着老调调 阅读(2907) 评论(0) 推荐(0) 编辑
  2021年1月7日
摘要: 微信支付:手机系统自带的浏览器,调用微信支付如何实现(这个不是扫码的是直接跳转的,PC端是扫码的,多一个转换二维码操作即可,easy~~~) 目前是草稿..稍后补充 如果您是使用浏览器的移动网页进行支付,那就是调用微信H5支付,如果是使用APP客户端进行支付,那就要调用微信APP支付。 微信H5支付 阅读全文
posted @ 2021-01-07 10:07 哼着老调调 阅读(1632) 评论(0) 推荐(0) 编辑
  2020年12月9日
摘要: 这里是vue脚手架中的例子 在router.index中声明方法,在导航守卫中调用并跳转 要注意跳转的网址必须加上 http 或https 1: 不加是不会打开外网的连接,会在你服务内找localhost:XX/XX, 2:加上的话,会变成正常的地址 3:location 获取的是浏览器地址栏内的地 阅读全文
posted @ 2020-12-09 08:22 哼着老调调 阅读(1917) 评论(0) 推荐(0) 编辑
  2020年11月12日
摘要: 最大盒子要100%高度,scroll-view的宽度不能设置固定宽度; <scroll-view class="bottomBox" scroll-x="true" @scroll="scroll"> <view @click="go(i)" class="commodity" v-for="(it 阅读全文
posted @ 2020-11-12 09:01 哼着老调调 阅读(2551) 评论(0) 推荐(0) 编辑
  2020年11月6日
摘要: 来自homie:https://www.cnblogs.com/cuiyuanhao/ 查看消费组详情: ./bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group test-consumer 阅读全文
posted @ 2020-11-06 16:39 哼着老调调 阅读(75) 评论(0) 推荐(0) 编辑

聊天   切换waifu!  换衣服!   拍照!   许愿吧cxy