下面是一行代码,我想注释掉,如何在html中注释掉html和php中的内容?
<h1 class="post_title"><a href="<?php the_permalink();?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
一种流行的方式来把它注释掉将分别注释掉HTML和PHP。
<!-- <h1 class="post_title">
<a href="<?php // the_permalink();?>" title="<?php the_title_attribute(); ?>">
<?php // the_title(); ?></a>
</h1>
-->
有没有更好的方法来做到这一点?请帮忙。
只是用来代码之前,你的代码后使用。 –
使用'Suppr',绝对是注释掉某些代码的最佳方式。 –
为什么我会为这个问题得到满意的结果?对我来说似乎是一个明显的问题。 –