Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
3eff3ea0
Commit
3eff3ea0
authored
Sep 14, 2022
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试继承js可行性
parent
130c7ac8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
app/design/frontend/Joshine/breeze/Magento_Theme/templates/html/footer.phtml
+0
-8
app/design/frontend/Joshine/breeze/Magento_Theme/web/js/public.js
+0
-1
app/design/frontend/Joshine/breeze/web/js/breeze/custom.js
+8
-0
No files found.
app/design/frontend/Joshine/breeze/Magento_Theme/templates/html/footer.phtml
View file @
3eff3ea0
...
@@ -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"
>
...
...
app/design/frontend/Joshine/breeze/Magento_Theme/web/js/public.js
View file @
3eff3ea0
...
@@ -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"
){
...
...
app/design/frontend/Joshine/breeze/web/js/breeze/custom.js
0 → 100644
View file @
3eff3ea0
(
function
()
{
'use strict'
;
$
(
document
).
on
(
'breeze:load'
,
function
()
{
console
.
log
(
'Hello'
);
});
})();
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment