![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JS
小草6588
像蚂蚁一样的工作,像蝴蝶一样的生活
展开
-
兼容火狐--常见问题修改
此文为本人在实际工作中遇到的情况做的记录,所以比较乱,主要用于自己日后查看。如果对大家有帮助,当然也更好。最普遍的情况当遇到功能不好使的情况,首先按f12看控制台有没有报错、A如果有定位错误常见错误:window.frames[“iframe_table”]去定位到报错位置 然后改成("iframe[id=′iframetable′]")如:原来:window.frames["iframetable"].location.href=gpm.cxtj.url;改成:("iframe[id='ifra原创 2020-07-14 11:30:32 · 960 阅读 · 0 评论 -
JS中的call、apply、bind方法详解
apply、call在 javascript 中,call 和 apply 都是为了改变某个函数运行时的上下文(context)而存在的,换句话说,就是为了改变函数体内部 this 的指向。JavaScript 的一大特点是,函数存在「定义时上下文」和「运行时上下文」以及「上下文是可以改变的」这样的概念。function fruits() {} fruits.prototype = {...转载 2019-10-18 14:34:58 · 208 阅读 · 0 评论 -
event.target 和 event.currentTarget 的区别
event.targetThis property of event objects is the object the event was dispatched on. It is different than event.currentTarget when the event handler is called in bubbling or capturing phase of the e...转载 2019-08-29 21:02:32 · 81 阅读 · 0 评论