会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
kikia
博客园
首页
新随笔
联系
管理
订阅
2017年1月22日
随机获取数组元素 和 数组元素随机排序
摘要: <script type="text/javascript"> //随机取得数组中的一个元素 function Rand(){ var arr=[11,22,33,44]; var a=Math.floor(Math.random()*arr.length);//Math.floor(Math.ra
阅读全文
posted @ 2017-01-22 17:32 gogo0
阅读(1916)
评论(0)
推荐(0)