![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
原生JS
longchi_vip
勿忘初心,方能始终!
展开
-
JS this全方位解读
this is who? I come talk ->this是谁和当前的函数在哪执行和在哪定义没有半毛钱的关系1)看函数执行的时候,函数名之前是否有".",有的话"."前面是谁this就是谁,没有的话this就是window oDiv.onclick=function(){ //匿名函数中的this->oDiv fn();//fn函数中的thi原创 2017-02-21 11:49:19 · 206 阅读 · 0 评论 -
js 自动生成的图形数字验证码(前端)
html:<div id="v_container" style="width: 140px;height: 36px;margin-left: 10px;"></div>//js的具体操作:$(function () { // 定义:存储验证码 var verifyCode = new GVerify("v_container"); ...原创 2019-01-23 15:17:22 · 2579 阅读 · 0 评论