![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
羚羊早安
这个作者很懒,什么都没留下…
展开
-
JavaScript 函数调用方式及this指向
函数调用方式 1 普通函数调用 this指向window function fn(){ console.log(this); } fn(); 2 方法调用 this指向调用该方法的对象 var obj = { fn:function(){ console.log(this); } } obj.fn(); 3 作为...原创 2018-05-23 21:41:09 · 172 阅读 · 0 评论 -
图片懒加载
<!DOCTYPE html> <html> <head> <script src="http://apps.bdimg.com/libs/jquery/1.9.1/jquery.js"></script> <title>懒加载</title> <meta cha原创 2018-06-13 15:46:51 · 119 阅读 · 0 评论 -
文件上传
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <input type原创 2018-09-05 21:20:49 · 160 阅读 · 0 评论