typescript本身就是js的超集或者js的扩展,是包含es6的,说说怎么了,你觉得讲的弱智你可以不看啊,说老师不专业的人怕是对自己太自信了吧?
2019-09-23
let limitprice: number = 15;
let price: number = 100;
while (price > limitprice) {
price = getprice2("microsoft");
console.log(`该价格¥${price}`);
}
console.log(`买价格¥为${price}的股票`);
let price: number = 100;
while (price > limitprice) {
price = getprice2("microsoft");
console.log(`该价格¥${price}`);
}
console.log(`买价格¥为${price}的股票`);
2019-09-08
function getprice2(com):number {
let num: number = 0;
while (true) {
num = Math.random() * 100;
break;
}
return num;
}
let num: number = 0;
while (true) {
num = Math.random() * 100;
break;
}
return num;
}
2019-09-08