jquery 工具

李言
2023-12-01

<html>
 <head>
  <script type="text/javascript" src="../jquery.js"></script>
  <script type="text/javascript">
   $(function(){
  //$.each( ['a','b','c'], function(i, n){
  //alert( "Item #" + i + ": " + n );
//});
 
 //$.each( { name: "John", lang: "JS" }, function(i, n){
  //alert( "Name: " + i + ", Value: " + n );
//});

//$("#b").val($.trim("  hello, how are you?  "));
//$("#c").val("  hello, how are you?  ");
   });

   </script> 
 </head> 
 <body>
  
  <div id="a">
    <p style="display: block">Hello</p>
    <input type=text id="b" />
    <input type=text id="c" />
    
    <input type="file" />
  </div>
 </body>
</html>

 类似资料: