bootstrap and exam review

  Bootstrap  Tutorial

    Bootstrap, from Twitter, is currently the most popular front-end framework. Bootstrap is based on HTML, CSS, JAVASCRIPT, it is concise and flexible, making Web development faster.

  This tutorial will teach you the basics of the Bootstrap framework, and by learning these, you'll be able to easily create Web projects. The tutorial is divided into Bootstrap Basic Structure, Bootstrap CSS, Bootstrap Layout Components, and Bootstrap Plugins. Each section contains simple and useful examples related to the topic.

  Using bootstrap can save a lot of time, but it is not recommended for beginners, and more practice is the right way.

  Here's a look at some of the unskilled questions on today's test:

  

  冒泡排序:
  for(var j = 0; j < arr.length; j++) {   for(var i = j+1; i < arr.length; i++) {   if(arr[j] < arr[i]) {   var temp = arr[j];   arr[j] = arr[i];   arr[i] = temp;   }   }   }  or(var x in arr){   alert(arr[x]); }











  Array deduplication:

  

  <script>

  var arr_1 = [1,2,3,4,3,3,6,2,4,7,5,6];
  var arr_2 = [];

  for(var i=0;i<arr_1.length;i++){   var status = 0;   for(var j=0;j<arr_2.length;j++){   if(arr_1[i] == arr_2[j]){   status = 1;   break;   }   }   if(status == 0){   arr_2.push(arr_1[i]);   }   }   for(var x in arr_2){   alert(arr_2[x]);   }  </script>

















  The title of the perpetual calendar:

  

  <script>
  var d1 = document.getElementById("d1");
  function qq() {   var time = new Date();   var year = time.getFullYear();   var month = time.getMonth() + 1;   var day = time.getDay();   var day = time.getDate();   d1.innerHTML = (year, month, day,time);   }   window.setInterval("qq()", 1000);










  

Reprinted in: https://www.cnblogs.com/liuyubin0629/p/6913527.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324123536&siteId=291194637