Home  >  Q&A  >  body text

java - .html和.html

url: cxt+"basicRatesInfo.htm"和url: cxt+"basicRatesInfo.html有什么区别?为什么从ajax中的URL调用.html调不过去??

伊谢尔伦伊谢尔伦2717 days ago964

reply all(2)I'll reply

  • 阿神

    阿神2017-04-18 10:49:44

    basicRatesInfo.html This file does not exist on the server.

    The extension actually only affects the windows system, and the extension is not important elsewhere. For example, in a browser, it mainly looks at the MIME type in the http header.
    In fact, this is a good method, so it is also adopted by other software or systems.
    In the past, the extension on Windows could only have 3 characters, so the file name could only be written htm,后来没有这个限制了,所以也可以写html, but they had the same meaning, but because the file names were different, they were still two different files.

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 10:49:44

    htm is the abbreviation of html, there is no other difference. The reason why html cannot be called is because your URL is wrong

    reply
    0
  • Cancelreply