我对type放在这儿的用法完全不知道,大家能给些例子,用法就好了

解决方案 »

  1.   

    TYPE NN n/a   IE 4   HTML 4 TYPE="elementType" Required 
      
    An advisory about the content type of the script statements. The content type should tell the browser which scripting engine to use to interpret the script statements. The TYPE attribute may eventually replace the LANGUAGE attribute as the one defining the scripting language in which the element's statements are written. To be compatible with future and past browsers, you may include both the LANGUAGE and TYPE attributes in a SCRIPT element. 
      
    Example 
    <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
    ...
    </SCRIPT>
     Value
    Case-insensitive MIME type. Values are limited to one(s) for which a particular browser is equipped.  
      
    Default text/javascript in Internet Explorer 4. 
     
      
    Object Model Reference IE [window.]document.all.elementID.type  
     
      

  2.   

    楼上说对极了,是针对不同版本的浏览器所设定,假如版本不支持javascript,将以 text格式显示