摘要:
Math.ceil()向上取整 Math.floor()向下取整 Math.round() 四舍五入 Math.pow(n,x);n的x次方 Math.random()获取随机数0-1 [0,1) Math.Max() 第一步: 先定义一个变量, 接收字符串 var str='1234567890A 阅读全文
posted @ 2018-08-04 22:25
suri&zh
阅读(213)
评论(0)
推荐(0)
~function(){
var person=prompt('type your family number of members');
if(person>=2){
alert('you have a lovely family')
}else if(person==1){
alert('you are single');
}else{
alert('you are martian')
}
}();