0
我在时刻上一个新网站,Symfony2的工作不工作,我还是个菜鸟,我只是不能使用jquery:Symfony2的jQuery的在树枝
我添加的文件jQuery的3.2。在我的文件夹中的Web /包/应用/ JS/jQuery的3.2.1.min.js 1.min.js,所以我在我的index.html.twig写道:
<script src="{{ asset('bundles/app/js/jquery-3.2.1.min.js') }}"
type="text/javascript">
var button = document.getElementById('divertir');
button.onclick = function() {
$('#video').show();
$(this).hide();
$('#divertir').removeClass('hcbutton');
};
</script>
但它不工作我真的不明白为什么...请帮我