摘要:
第一:网页引用 <script src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>第二步 判断当前环境 //判断当前页面是否在小程序环境中, 注:首页是在小程序,嵌套网页,该网页才能再次跳转回小程序 wx.miniProgram
阅读全文
posted @ 2020-12-23 13:23
刘世涛6192
阅读(760)
推荐(0)
摘要:
问题描述:调用后端接口,接口返回文件流的形式, 第一种:window.local.href = 'xx/xx' 第二种:请求接口 接口返回一段文件流;使用 js-file-download 进行下载; js-file-download 使用方式: 安装 npm install js-file-dow
阅读全文
posted @ 2020-12-22 18:34
刘世涛6192
阅读(3699)
推荐(0)
摘要:
转载:https://blog.csdn.net/weixin_41646716/article/details/81099880 一块: 事件流描述的是从页面接收事件的顺序。 IE的事件是冒泡事件流, 而firefox的事件流是捕获事件流。 1.事件冒泡 IE的事件流叫做事件冒泡,即事件从最具体的
阅读全文
posted @ 2020-11-30 17:19
刘世涛6192
阅读(156)
推荐(0)
摘要:
dom0级事件 1 2 3 4 5 6 7 8 9 10 <a href="#" id="hash" onclick="fn();fn1();"> <button type="button">返回上面进行开通</button> </a> var btn=$('#hash').get(); btn.o
阅读全文
posted @ 2020-11-30 17:18
刘世涛6192
阅读(909)
推荐(0)
摘要:
转载:https://juejin.cn/post/6844903781709119495 vue-ueditor-wrap地址:https://github.com/HaoChuan9421/vue-ueditor-wrap vue-ueditor-wrapdemo地址:http://uedito
阅读全文
posted @ 2020-11-23 16:39
刘世涛6192
阅读(1768)
推荐(0)
摘要:
Vue-Quill-Editor 主流富文本编辑器对比 前言:vue中很多项目都需要用到富文本编辑器,在使用了ueditor和tinymce后,发现并不理想。所以果断使用vue-quill-editor来实现。 wangEditor(国产,基于javascript和css开发的web富文本编辑器,开
阅读全文
posted @ 2020-11-23 16:29
刘世涛6192
阅读(5217)
推荐(0)
摘要:
在css中,正常这么引入是可以显示的 background: url(../assets/images/banner.png) no-repeat center; 代码中看的效果如下: 但是在js中引入则需要加上 require(),不然无法显示 转载:https://blog.csdn.net/s
阅读全文
posted @ 2020-10-15 17:30
刘世涛6192
阅读(3021)
推荐(0)
摘要:
$(document).ready(function() { if (window.history && window.history.pushState) { $(window).on('popstate', function () { window.history.pushState('forw
阅读全文
posted @ 2020-10-15 10:00
刘世涛6192
阅读(960)
推荐(0)
摘要:
插件通常用来为 Vue 添加全局功能 使用插件 通过 Vue 的全局方法 Vue.use() 使用, 当然,在使用这个方法之前,你的 Vue 实例 必须已经初始化完成 import myPlugin from './plugIn/myPlugin' // 该方法,会调用 myPlugin 的 ins
阅读全文
posted @ 2020-10-13 16:21
刘世涛6192
阅读(343)
推荐(0)
摘要:
一、概述 浏览器的缓存机制也就是我们说的HTTP缓存机制,其机制是根据HTTP报文的缓存标识进行的,所以在分析浏览器缓存机制之前,我们先使用图文简单介绍一下HTTP报文,HTTP报文分为两种: 同步sau交流学习社区(首发):https://www.mwcxs.top/page/565.html 1
阅读全文
posted @ 2020-09-11 13:45
刘世涛6192
阅读(505)
推荐(0)