For in statement

From , 3 Years ago, written in JavaScript, viewed 113 times.
URL https://pastebin.vip/view/289dff07
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3.   <head>
  4.     <title>for-in语句</title>
  5.  
  6.   </head>
  7.   <body>
  8.         <script type="text/javascript">
  9.                 var arr = ['ab',34,true,false,3.14];
  10.                 //使用for-in语句来遍历数组
  11.                 for( x in arr ){ //x表示的是数组的索引
  12.                         document.write(arr[x] + "&nbsp;&nbsp;&nbsp;");
  13.                 }      
  14.         </script>
  15.   </body>
  16. </html>
  17.  

Reply to "For in statement"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website