上一页 1 2 3 4 5 6 7 ··· 21 下一页
摘要: 首先要明确它就是个语法糖 (v-model 相当于 onChange 的语法糖) <input type="text" :value= 'name' @input='name = $event.target.value'> <p>{{name}}</p> 上面这个功能和v-model是一致的 你自己 阅读全文
posted @ 2020-02-19 11:48 xuanPhoto 阅读(201) 评论(0) 推荐(0)
摘要: 先新建一个renderDom.js的文件 下面是这个文件的内容 export default { render: function (createElement) { return createElement('h3', '我是H3标签') } } 之后作为组件引入到vue单文件中 <templat 阅读全文
posted @ 2020-02-11 13:59 xuanPhoto 阅读(914) 评论(0) 推荐(0)
摘要: reduce() 方法接收一个函数作为累加器,数组中的每个值(从左到右)开始缩减,最终计算为一个值。reduce() 方法接受四个参数:初始值(或者上一次回调函数的返回值),当前元素值,当前索引,调用 reduce() 的数组。 reduce( ) 的几个强大用法:(reduce的核心在于与上次的操 阅读全文
posted @ 2019-11-19 10:02 xuanPhoto 阅读(1250) 评论(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 阅读(179) 评论(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 阅读(76) 评论(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 阅读(155) 评论(0) 推荐(0)
摘要: 为什么重写Sass? 为什么使用Dart? 各种实现的后续规划? 阅读全文
posted @ 2019-08-09 17:28 xuanPhoto 阅读(1615) 评论(0) 推荐(0)
摘要: MDN 解释 FormData的主要用途有两个 查看更多 阅读全文
posted @ 2019-07-17 16:09 xuanPhoto 阅读(267) 评论(0) 推荐(0)
摘要: url1、 定义和用法 decodeURI() 函数可对 encodeURI() 函数编码过的 URI 进行解码。 decodeURIComponent() 函数可对 encodeURIComponent() 函数编码的 URI 进行解码。 从W3C的定义和用法来看,两者没有什么区别,但是两者的参数 阅读全文
posted @ 2019-07-16 11:03 xuanPhoto 阅读(241) 评论(0) 推荐(0)
摘要: 前言下载方式分为两种 这个取决于后端返回的内容类型 是 Blod 还是 url地址 下载过Excel文件(后端返回内容为Blod) var eleTextarea = document.querySelector('textarea') var eleButton = document.queryS 阅读全文
posted @ 2019-06-18 15:58 xuanPhoto 阅读(23) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 21 下一页