编译器如何得知这是.aspx页或.js页或任何其他页. [英] How the compiler came to know that this is .aspx page or .js page or any other page.

查看:44
本文介绍了编译器如何得知这是.aspx页或.js页或任何其他页.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



编译器如何得知这是aspx页面或js页面或任何其他页面.



感谢

Hi,

How the compiler came to know that this is aspx page or js page or any other page.



Thanks

推荐答案

对于ASPX文件,它基于文件的扩展名.如果您不给它适当的扩展名,编译器将不知道如何处理它.对于JS文件,它们只是文本文件,而当您在HTML中加载一个JS文件时,脚本标记属性将定义文本文件的类型.
With ASPX files, it''s based on the file''s extension. If you don''t give it the proper extension, the compiler won''t know what to do with it. With JS files, they''re just text files, and when you load one in HTML, the script tag attributes define what type of text file it is.


这篇关于编译器如何得知这是.aspx页或.js页或任何其他页.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆