假设贵领域为domain.com,并附上以下目录和档案:
- index.php
<panel>
- panel.php
<css>
- style.css
<js>
- jQuery.js
In index.php you may call a css file like "css/style.css" or "domain.com/css/style.css"
In panel.php you may call a js file like "../js/jQuery.js" or "domain.com/js/jQuery.js"
What is the best method to use? css/style.css or domain.com/css/style.css ?
Does it make any difference? I am asking because in my case it will help me to use the domain.com/css/style.css but is it treated as an external file that may reduce perfomance?