【发布时间】:2013-11-28 16:29:04
【问题描述】:
有人可以帮忙吗
我有类似的东西
<div class="hidearea<?php echo $number?>">Example text Example text Example text Example text Example text </div>
<script> $( '.hidearea<?php echo $number?>' ).hide(); </script>
如何将 div 中的类插入到隐藏函数中?
【问题讨论】:
-
在文件准备好的时候做
-
@SHIN 因为他的脚本在元素之后,所以它应该按原样工作。
-
您编写的代码有什么问题?我认为它应该有效。