摘要:
btnsAnime($('ul li')) function btnsAnime(pagesl) { var that = this $(pagesl).hide() let i = 0; function temp() { if (i > pagesl.length - 1) { clearInt 阅读全文
摘要:
//定义点的结构体 function point(){ this.x=0; this.y=0; } //计算一个点是否在多边形里,参数:点,多边形数组 function PointInPoly(pt, poly) { for (var c = false, i = -1, l = poly.leng 阅读全文
摘要:
instanceof 功能 a instanceof b 官方解释为检查构造函数b的prototype 有没有出现在a的原型链上。比如: function A() { } function B() { } function C() { } //B继承A B.prototype = new A() l 阅读全文