![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
文章平均质量分 62
fly_gaozhe
目标全栈工程师
展开
-
js prototype 使用场景
1:定义一个方法 let c = function(){ this.name = 123; } let newC = new c(); console.log(newC.name) // 输入出123 2: 如果要给c另外增加新属性 c.newName = 333; console.log(c.newName) //undefined # 如果要加 c.prototype.newName = 444; console.log(newC.newName) //输出444原创 2020-07-23 15:25:28 · 256 阅读 · 0 评论 -
jquery.wordexport.js
原文件中,img是这样获取的(大概在jquery-wordexport.js的第27行) 改成 var img = new Image();原创 2019-12-07 10:53:30 · 283 阅读 · 0 评论 -
input上传图片压缩
<html> <input type="file" id="file" onchange="upload()"/> </html> <script> function upload(){ var file = document.getElementById('file'); var reader = new FileReader();...原创 2019-11-28 09:57:35 · 1357 阅读 · 0 评论 -
axios一设置请求头就OPTIONS
首先出现options请求是因为你添加了自定义的请求头,导致你的简单跨域请求变成了复杂跨域的。 headers: { // 'X-Requested-With': 'XMLHttpRequest', // 就是这个 header:{ Content-Type': 'application/x-www-form-urlencoded; charset=utf-8' }, ...转载 2019-11-13 10:21:21 · 861 阅读 · 0 评论 -
element ui报Cannot read property 'disabled' of null错
页面中使用了el-dropdown,但是在这个标签里面没有设置它的子 元素,所以会报错,在el-dropdown中添加el-dropdown-menu标签 就好原创 2019-11-02 15:32:00 · 4165 阅读 · 0 评论