javascript 关于thisfunction makeArray(n){this.length=n //这个地方的this是指的什么?return this}function hexfromdec(num) {hex=new makeArray(1);var hexstring="";var shifthex=16;var temp1=num;for(x=1; x>=0; x--) {hex[x]=Math.round(temp1/shift

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 01:15:13
javascript 关于thisfunction makeArray(n){this.length=n //这个地方的this是指的什么?return this}function hexfromdec(num) {hex=new makeArray(1);var hexstring==0; x--) {hex[x]=Math.round(temp1/shift" />
xn@_eMni/*Bd/8kkiSUz($TK+Pe`w;dpbi#Y%>yL@jr{.bG#4e0į6aR: a#ק󙒧L߿trv1 T4Ec2x:쓞FCNd1rdtsES6@N1M 2|$Q`EnWq#wO gV>vKs9:.6ZIVdX5]ks몶67QІlͶ}TQ3CUk5<E=,7 !wnӰn`z~ްFB_UfePFHxk5$|xb#L⩍X7$و حǔGbjzi}Y8IP-/GC/O<W~*?^aUS

javascript 关于thisfunction makeArray(n){this.length=n //这个地方的this是指的什么?return this}function hexfromdec(num) {hex=new makeArray(1);var hexstring="";var shifthex=16;var temp1=num;for(x=1; x>=0; x--) {hex[x]=Math.round(temp1/shift
javascript 关于this



function makeArray(n){
this.length=n //这个地方的this是指的什么?
return this
}
function hexfromdec(num) {
hex=new makeArray(1);
var hexstring="";
var shifthex=16;
var temp1=num;
for(x=1; x>=0; x--) {
hex[x]=Math.round(temp1/shifthex - .5);
hex[x-1]=temp1 - hex[x] * shifthex;
temp1=hex[x-1];
shifthex /= 16;
}
for (x=1; x>=0; x--) { hexstring+=getletter(hex[x]); }
return (hexstring);
}
function getletter(num) {
if (num < 10) { return num; }
else {
if (num == 10) { return "A" }
if (num == 11) { return "B" }
if (num == 12) { return "C" }
if (num == 13) { return "D" }
if (num == 14) { return "E" }
if (num == 15) { return "F" }
}
}
function rainbow(text){
var color_d1;
var allstring="";
for(i=0;i

javascript 关于thisfunction makeArray(n){this.length=n //这个地方的this是指的什么?return this}function hexfromdec(num) {hex=new makeArray(1);var hexstring="";var shifthex=16;var temp1=num;for(x=1; x>=0; x--) {hex[x]=Math.round(temp1/shift
好厉害呀