慕婉清4405868
Standpoint
你如果要执行这个方法就不需要prototype了
Peiven_陈
+1 请问你解决了吗
慕仔8415870
慕仙1208387
找到问题了
慕尼黑6497638
Square.prototype.canRotate = function (isValid) {
var tsPoints = this.orgPoints;
var tsCodes;
var tsDrt = (this.drt + 1) % 4;
tsCodes = [
[0, 0, 0, 0],
[0, 0, 0, 0],
[0, 0, 0, 0],
[0, 0, 0, 0]
];
for (var i = 0; i < this.squCodes.length; i++) {
for (var j = 0; j < this.squCodes[0].length; j++) {
tsCodes[i][j] = this.rotCodes[tsDrt][i][j];
}
}
return isValid(tsPoints, tsCodes);
};
Square.prototype.rotate = function (num) {
if (!num) {
mum = 1;
}
this.drt = (this.drt + num) % 4;
for (var i = 0; i < this.squCodes.length; i++) {
for (var j = 0; j < this.squCodes[0].length; j++) {
this.squCodes[i][j] = this.rotCodes[this.drt][i][j];
}
}
};
qq_慕数据13023
检查css和数组
qq_咳素质Gemini_0
let SquareFactory = function () {};SquareFactory.prototype.make = function (index, dir){};你写成:
let SquareFactory = function () {
SquareFactory.prototype.make = function (index, dir){};
};
慕先生5845130
旁边放着另一台电脑,看着敲