摘要:
1 function getRandomIntNumber(min, max) { 2 var span = max - min + 1; 3 var result = Math.floor(Math.random() * span + min); 4 return result; 5 } 阅读全文
posted @ 2016-02-20 16:17
赵康
阅读(615)
评论(0)
推荐(0)
摘要:
1 var str="1 plus 2 equal 3" 2 3 // 正则表达式 4 console.log(str.match(/\d+/g)); // ["1", "2", "3"] 5 console.log(str.match(/\d+/)); // ["1", index: 0, inp 阅读全文
posted @ 2016-02-20 15:25
赵康
阅读(474)
评论(0)
推荐(0)

浙公网安备 33010602011771号