上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: 1、更改vant ui轮播方向 yarn add vue-directive-touch <van-swipe ref="swipeInfo" v-touch:up="onSwipeLeft" v-touch:down="onSwipeRight" class="my-swipe" :initial 阅读全文
posted @ 2020-04-25 13:16 ronle 阅读(266) 评论(0) 推荐(0)
摘要: url参数序列化 /** * json序列化为URLencode * @return {string} */ let json_to_URLencode = json => { return Object.keys(json) .map(function(key) { return encodeUR 阅读全文
posted @ 2020-03-20 21:51 ronle 阅读(258) 评论(0) 推荐(0)
摘要: 中文文档 https://studygolang.com/pkgdoc hello world // 必须要有个main包 package main // 导入包,必须使用 import "fmt" func main() { // 变量定义了,必须使用 // 只是声明,而没有初始化的变量,默认值为 阅读全文
posted @ 2020-03-04 22:40 ronle 阅读(170) 评论(0) 推荐(0)
摘要: 图片压缩的方法 // 图片压缩 compressImage(file, success, error) { // 图片小于1M不压缩 // if (file.size < Math.pow(1024, 2)) { // return success(file); // } const name = 阅读全文
posted @ 2020-02-22 15:09 ronle 阅读(289) 评论(0) 推荐(0)
摘要: html <span class="iconfont scan" @click="scan"> <input ref="camera" type="file" @change="toBase64" style="position: absolute;top:50rem" accept="image/ 阅读全文
posted @ 2020-02-17 13:41 ronle 阅读(925) 评论(0) 推荐(0)
摘要: // 浏览器地址栏输入chrome://dino // 控制台输入 以便查看对象 (function () { const keys = []; const ifeame = document.createElement('iframe'); ifeame.onload = function () { const iframeKeys = Object.keys(ifeame.contentWin 阅读全文
posted @ 2020-01-18 11:01 ronle 阅读(770) 评论(0) 推荐(0)
摘要: 默认插槽(匿名插槽) father.vue 因为父组件在里面写了html模板,那么子组件的匿名插槽这块模板就是下面这样。也就是说,子组件的匿名插槽被使用了,是被下面这块模板使用了。 child.vue 具名插槽 father.vue child.vue 作用域插槽(带数据的插槽) father.vu 阅读全文
posted @ 2020-01-11 14:03 ronle 阅读(158) 评论(0) 推荐(0)
摘要: 转自 https://codepen.io/mirari/pen/XLgBQP 随机数 阅读全文
posted @ 2020-01-08 14:25 ronle 阅读(474) 评论(0) 推荐(0)
摘要: src/renderer/util/option.js src/main/index.js 阅读全文
posted @ 2019-11-15 15:35 ronle 阅读(731) 评论(0) 推荐(0)
摘要: CODE 阅读全文
posted @ 2019-11-15 11:13 ronle 阅读(1018) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页