请教php文件里怎么调用jquery插件
echo "<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>";
echo "<script>
$(document).ready(function(){
$('li.mainlevel').mousemove(function(){
$(this).find('ul').slideDown();//you can give it a speed
});
$('li.mainlevel').mouseleave(function(){
$(this).find('ul').slideUp('fast');
});
});
</script>";
在php的文件里加入以上代码
已经使用echo弹出script了,为什么还是不起作用?