摘要:
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> body, ul, li { margin: 0; padding: 0; list-style: none; } 阅读全文
摘要:
随机初始化数组项 //随机生成20项初始化数组 var arr = []; for(var i=0; i<20; i++){ arr[i] = Math.floor(Math.random()*21); } 选择排序 for(var i=0; i<arr.length; i++){ //最小值下标 阅读全文