日期:2014-05-16 浏览次数:20424 次
var rand = {}; rand.get = function(begin, end) { return Math.floor(Math.random() * (end - begin)) + begin; } var v = rand.get(1, 10) console.info(v);