上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 64 下一页
  2020年5月2日
摘要: 发现一个可以改变地址栏,而不导致页面刷新的东东。 Chrome, FF测试通过,不支持IE. 实现目标 页面的跳转(前进后退,点击等)不重新请求页面 页面URL与页面展现内容一致(符合人们对传统网页的认识) 在不支持的浏览器下降级成传统网页的方式 使用到的API history.state 当前UR 阅读全文
posted @ 2020-05-02 01:19 ygunoil 阅读(4742) 评论(0) 推荐(0) 编辑
摘要: 1、创建元素节点:createElement document.createElement("p");//创建p标签; document.createTextNode("txt");//创建文本标签; 2、插入节点:appendchild:在要插入的元素节点上调用,他插入指定的节点使其成为那个节点的 阅读全文
posted @ 2020-05-02 01:18 ygunoil 阅读(718) 评论(0) 推荐(0) 编辑
  2020年5月1日
摘要: 添加vue.d.ts 文件 重启VS Code 错误消失了。 1 import Vue from "vue"; 2 3 declare module "vue/types/vue" { 4 interface Vue { 5 $moment: any 6 } 7 } 阅读全文
posted @ 2020-05-01 14:14 ygunoil 阅读(916) 评论(0) 推荐(0) 编辑
摘要: 1、第一种,通过clipboard.js插件实现(推荐) 此插件封装了很多种使用方式很方便,具体demo,可以去GitHub上看,clipboard传送门 2、第二种,纯js实现: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF- 阅读全文
posted @ 2020-05-01 14:13 ygunoil 阅读(2217) 评论(0) 推荐(0) 编辑
摘要: 使用params传参说明:使用params传参类似于get请求,是将参数拼接在url上。 axios.delete(url, { params: { userId: '007' } }).then(res => { console.log(res) }) 使用data传参说明:使用data传参类似于 阅读全文
posted @ 2020-05-01 14:11 ygunoil 阅读(9081) 评论(0) 推荐(1) 编辑
摘要: Vue项目 报错 [Vue warn]: Property "visible" must be accessed with "$data.visible" because properties starting with "$" or "_" are not proxied in the Vue i 阅读全文
posted @ 2020-05-01 14:10 ygunoil 阅读(4959) 评论(2) 推荐(0) 编辑
  2020年4月24日
摘要: 1. vonic 一个基于 vue.js 和 ionic 样式的 UI 框架,用于快速构建移动端单页应用,很简约,是我喜欢的风格 star 2.3k 中文文档 在线预览 2.vux 基于WeUI和Vue(2.x)开发的移动端UI组件库 star 10k 基于webpack+vue-loader+vu 阅读全文
posted @ 2020-04-24 10:24 ygunoil 阅读(5012) 评论(0) 推荐(0) 编辑
摘要: 一、openId是什么?openId是用户在当前公众号下的唯一标识(‘身份证’),就是说通过这个openId,就能区分在这个公众号下具体是哪个用户。 二、openId有什么用? 假如用户A在当前公众号下购买了一件商品,用户的下单信息肯定要存储到后台数据库,那根据什么进行存储呢?openId是用户在当 阅读全文
posted @ 2020-04-24 10:06 ygunoil 阅读(3130) 评论(0) 推荐(0) 编辑
摘要: IM截图20190605174729.jpg 直接封装成组件,多处可以调用,话不多说,上代码 <template> <div class="container"> <ul> <li class="list-item " v-for="(item,index) in list " data-type= 阅读全文
posted @ 2020-04-24 10:03 ygunoil 阅读(3658) 评论(0) 推荐(0) 编辑
摘要: vant似乎没有直接提供传统的select下拉框,我的意思是,单行单元格然后点击出现下拉框,样式和其他input统一。 今天做了一下,记录一下子,以免后面忘记 1.需求 input focus下出现下拉框,选中选项后 值绑定给field 2.html部分 圆圈处是控制底部抽屉是否显示 3.data和 阅读全文
posted @ 2020-04-24 09:49 ygunoil 阅读(12182) 评论(0) 推荐(0) 编辑
上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 64 下一页