博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
<script language="JavaScript"> or <script type="text/javascript"> ?
阅读量:6368 次
发布时间:2019-06-23

本文共 961 字,大约阅读时间需要 3 分钟。

When embedding JavaScript in ASP.NET/HTML, what are the differences between the following codes, if any?
 
 
<script language="JavaScript"> is deprecated as "language" value is an identifier which has no standards.
type="text/javascript" is the correct syntax. This overrides the default scripting language.
 
 
 
 
 
type = content-type
    This attribute specifies the scripting language of the element's contents and overrides the default scripting language. The scripting language is specified as a content type (e.g.,
"text/javascript" ). We have to supply a value for this attribute. There is no default value for this attribute.
language ="JavaScript"
This attribute specifies the scripting language of the contents of this element. Its value is an identifier for the language, but since these identifiers are not standard, this attribute has been deprecated(outdated by newer constructs) in favor of type.

转载于:https://www.cnblogs.com/mount/archive/2011/11/17/2252388.html

你可能感兴趣的文章
如何:强化 TCP/IP 堆栈安全
查看>>
Spring3 MVC中使用Swagger生成API文档
查看>>
FastCGI PHP on Windows Server 2003
查看>>
LimeSDR Getting Started Quickly | LimeSDR上手指南
查看>>
JSP标签JSTL的使用(1)--表达式操作
查看>>
SAP顾问的人脉比技术更为重要
查看>>
FI/CO PA考试试卷
查看>>
汽车介质应用非常严苛?没关系,新技术带来的高精度传感器十分适应!
查看>>
天合光能 - 用计算捕捉“光的能量”
查看>>
使用sysbench压力测试MySQL(一)(r11笔记第3天)
查看>>
css知多少(11)——position
查看>>
【Spring】定时任务详解实例-@Scheduled
查看>>
先有的资源,能看的速度看,不能看的,抽时间看。说不定那天就真的打不开了(转)...
查看>>
[20161028]rman与filesperset=1.txt
查看>>
哪些领域适合开发微信小程序
查看>>
谁说数据库防火墙风险大?可能你还不知道应用关联防护
查看>>
ASP.NET Core应用针对静态文件请求的处理[2]: 条件请求与区间请求
查看>>
怎样做一个企业?尤其是在这个互联网时代
查看>>
DVNA:Node.js打造的开源攻防平台
查看>>
17个案例带你3分钟搞定Linux正则表达式
查看>>