摘要:
网址:https://mapv.baidu.com/gl/examples/editor.html#circle.html 阅读全文
摘要:
vue-awesome-swiper在Vue中的应用 网址:https://github.surmon.me/vue-awesome-swiper/ vue-awesome-swiper是基于swiper的, 安装不同版本的vue-awesome-swiper对应不同的swiper, 所以swipe 阅读全文
摘要:
问题:微信小程序系统自带的 wx.previewImage 预览大图功能很好用,用起来很顺畅丝滑,但是有一个致命问题:预览大图的时候是在新页面中打开,当前页面的生命周期会销毁,如果当前页面中没有实时的东西还好,但如果有类似 <live_player> <live_push> <video> 等组件, 阅读全文
摘要:
uniapp版本 selectPosition(e) { uni.setStorageSync("b_page_index", e); // 存入当前选择 let _latitude = ""; let _longitude = ""; console.log("111"); uni.getLoca 阅读全文
摘要:
css 效果 <body> <div class="tw"></div> <div class="div"></div> <div id="test2"></div> <div id="test1"></div> <div class="tops"></div> <div class="right" 阅读全文
摘要:
由于页面加载时,使用了keep-alive,keep-alive具有数据缓存作用,当在添加页面添加成功时,返回主页面没有立即更新。数据有缓存。 将获取数据列表的方法放到activated里面,不要放到mounted或者created里面。 activated():{ this.load_data() 阅读全文
摘要:
var f = data[0]; //图片地址 var xhr = new XMLHttpRequest() xhr.open('GET', f, true) xhr.responseType = 'blob' xhr.onload = function() { console.log("到此了") 阅读全文
摘要:
手动创建一个vue.config.js 然后加上 module.exports = { lintOnSave:false,//这里禁止使用eslint-loader } 阅读全文
摘要:
1:直接打开文件 savePicture: function(e) { var _this=this; console.log(e); var url=e.currentTarget.dataset.url; url="https://chengfei.dev145.ynccxx.net/web/a 阅读全文
摘要:
wxml: <canvas canvas-id="gameCanvas" style="width:750rpx; height:350rpx" hidden="{{!statusTag}}" ></canvas> <button bindtap="createImage">生成图片</button 阅读全文