看它的index.php,只有<?php,没有?>,第一次看到这种情况,为何要这么做?
|
|
对于纯代码文件,这样做的好处是可以防止意外的输出空格 一些框架,如zend,也采用了此法
|
||
|
|
|
|
<?php drupaladdjs( '$(document).ready(function(){ $("p").fadeIn("slow"); });', 'inline' ); ?> Paragraph one Paragraph two Paragraph three |
||
|
|
