第一次嫌别人给分太少。捋须而笑。
这么难的题才给5分。<script>function getOutput(num)
{
var str9=num.toString(9);
var str10=str9.replace(/8/g,"9").replace(/7/g,"8").replace(/6/g,"7").replace(/5/g,"6").replace(/4/g,"5");
return parseInt(str10);
}
alert(getOutput(36));
</script>
这么难的题才给5分。<script>function getOutput(num)
{
var str9=num.toString(9);
var str10=str9.replace(/8/g,"9").replace(/7/g,"8").replace(/6/g,"7").replace(/5/g,"6").replace(/4/g,"5");
return parseInt(str10);
}
alert(getOutput(36));
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货