.
for (var i=100; i < 1000; i++) {
var x=parseInt(i/100);//提取位上的数值
var y=parseInt(i/10%10);//提取十位上的数值
var z=parseInt(i%10);//提取个位上的数值
if(i==x*x*x + y*y*y + z*z*z){
document.write(x);
document.write(y);
document.write(z);
document.write('<br>');
document.write(i);