Commit 3eff3ea0 by lmf

测试继承js可行性

parent 130c7ac8
...@@ -19,14 +19,6 @@ $logoHeight = $logoSizeResolver !== null && $logoSizeResolver->getHeight() ...@@ -19,14 +19,6 @@ $logoHeight = $logoSizeResolver !== null && $logoSizeResolver->getHeight()
? $logoSizeResolver->getHeight() ? $logoSizeResolver->getHeight()
: $block->getLogoHeight(); : $block->getLogoHeight();
?> ?>
<script>
require(['jquery'], function ($) {
$(function () { // to ensure that code evaluates on page load
console.log('111');
//这里就可以用jquery的方法了
});
})
</script>
<div class="footer-container"> <div class="footer-container">
<div class="footer_link"> <div class="footer_link">
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
define(['jquery'], function($){ define(['jquery'], function($){
$(function () { // to ensure that code evaluates on page load $(function () { // to ensure that code evaluates on page load
console.log('222');
$("h4").click(function () { $("h4").click(function () {
var dis = $(this).siblings("ul").css("display"); var dis = $(this).siblings("ul").css("display");
if (dis == "none"){ if (dis == "none"){
......
(function () {
'use strict';
$(document).on('breeze:load', function () {
console.log('Hello');
});
})();
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment