The Load in the thinkphp template seems to have a BUG.

Source: Internet
Author: User
In the thinkPHP template, several tag tags are used to introduce js and css, such as importcssjsload. After testing, it seems that the load Tag has a BUG, such as loadhrefneatstudio.comassetsstaticwapcssreset.css, load a CSS file. This is okay, but if you use loadhr

In the thinkPHP template, several tag tags are used to introduce js and css, such as import/css/js/load. After testing, it seems that the load Tag has a BUG, for example: load href = "Export hr

In the thinkPHP template, several tag tags are used to introduce js and css, such as import/css/js/load. After testing, it seems that the Tag load has a BUG.

For example: , Load a CSS file, this is OK, but if you use .

Of course, if you use Is valid

After reading the code, it seems that when the type is not clearly marked, the program determines that the suffix name is invalid. The label actively tells the import program that my type is css and the load is determined by the Code. Therefore, you should add type = "css" to the load program, or modify the program:

Look at the dashes. Here we should first basename, put? Or other information with versions should be removed first.

Maybe this is a bug. Maybe it is a prompt that you should actively Add the type.

Original article address: the Load in the thinkphp template seems to have a BUG. Thank you for sharing it with the original author.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.