上一页 1 2 3 4 5 6 7 ··· 21 下一页
摘要: 先新建一个renderDom.js的文件 下面是这个文件的内容 export default { render: function (createElement) { return createElement('h3', '我是H3标签') } } 之后作为组件引入到vue单文件中 <templat 阅读全文
posted @ 2020-02-11 13:59 xuanPhoto 阅读(875) 评论(0) 推荐(0)
摘要: reduce() 方法接收一个函数作为累加器,数组中的每个值(从左到右)开始缩减,最终计算为一个值。reduce() 方法接受四个参数:初始值(或者上一次回调函数的返回值),当前元素值,当前索引,调用 reduce() 的数组。 reduce( ) 的几个强大用法:(reduce的核心在于与上次的操 阅读全文
posted @ 2019-11-19 10:02 xuanPhoto 阅读(1208) 评论(0) 推荐(0)
摘要: 前言 小程序二维码生成接口API(小程序自带生成二维码的api) wx.scanCode(Object object) https://blog.csdn.net/yaoohfox/article/details/78987785 https://developers.weixin.qq.com/m 阅读全文
posted @ 2019-11-04 10:31 xuanPhoto 阅读(128) 评论(0) 推荐(0)
摘要: <!--垂直滚动,这里必须设置高度--> <scroll-view scroll-y="true" style="height: 200px"> <view style="background: red; width: 100px; height: 100px" ></view> <view sty 阅读全文
posted @ 2019-11-01 14:46 xuanPhoto 阅读(42) 评论(0) 推荐(0)
摘要: import ua from './devices' // 判断环境用的 function removeHistory () { if (ua.isApp()) { // 防止页面后退 history.pushState(null, null, document.URL) window.addEventListener('popstate', function () { history.pushS 阅读全文
posted @ 2019-09-17 11:39 xuanPhoto 阅读(134) 评论(0) 推荐(0)
摘要: 为什么重写Sass? 为什么使用Dart? 各种实现的后续规划? 阅读全文
posted @ 2019-08-09 17:28 xuanPhoto 阅读(1576) 评论(0) 推荐(0)
摘要: MDN 解释 FormData的主要用途有两个 查看更多 阅读全文
posted @ 2019-07-17 16:09 xuanPhoto 阅读(240) 评论(0) 推荐(0)
摘要: url1、 定义和用法 decodeURI() 函数可对 encodeURI() 函数编码过的 URI 进行解码。 decodeURIComponent() 函数可对 encodeURIComponent() 函数编码的 URI 进行解码。 从W3C的定义和用法来看,两者没有什么区别,但是两者的参数 阅读全文
posted @ 2019-07-16 11:03 xuanPhoto 阅读(194) 评论(0) 推荐(0)
摘要: 前言下载方式分为两种 这个取决于后端返回的内容类型 是 Blod 还是 url地址 下载过Excel文件(后端返回内容为Blod) var eleTextarea = document.querySelector('textarea') var eleButton = document.queryS 阅读全文
posted @ 2019-06-18 15:58 xuanPhoto 阅读(11) 评论(0) 推荐(0)
摘要: 1、切换开发者工具的位置(上下左右) F12呼唤出来的DevTools开发者调试工具ctrl + shift + D 切换右边与底部 但 如果你将它通过鼠标(下图) 切换过位置 (默认是 右边和底部) 你现在切换位置到左边 那么使用这个快捷键之后 就是 从左边切到右边/之前的位置 2、切换F12/C 阅读全文
posted @ 2019-06-16 18:23 xuanPhoto 阅读(545) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 21 下一页