Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
毕凯
8 years ago
Commit
6b94332c27dea441f9e6f4d42303b285071e7153
1 parent
b4d8c715
优化
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
apps/mip/mip-utils.js
apps/mip/mip-utils.js
View file @
6b94332
...
...
@@ -7,7 +7,7 @@ module.exports = {
* @param {*} prefix
*/
processStyle
(
$
,
prefix
)
{
let
css
=
[
'/* inlineStyle start */'
];
let
css
=
[];
$
(
'*'
).
each
(
function
(
index
)
{
let
$this
=
$
(
this
);
...
...
@@ -28,7 +28,7 @@ module.exports = {
* @param {*} $
*/
processTag
(
$
)
{
let
css
=
[
'/* styleTag start */'
];
let
css
=
[];
// mip-anim
$
(
'img[src*=".gif"]'
).
each
(
function
()
{
...
...
@@ -73,7 +73,7 @@ module.exports = {
// mip-link
$
(
'a'
).
each
(
function
()
{
let
$this
=
$
(
this
);
let
mipLink
=
`
<
mip
-
link
href
=
"${$this.attr('href')}"
title
=
"${$this.attr('title') || ''}"
>
$
{
$this
.
html
()}
<
/mip-link>`; /
/
eslint
-
disable
-
line
let
mipLink
=
`
<
mip
-
link
href
=
"${$this.attr('href')}"
class
=
"${$this.attr('class') || ''}"
title
=
"${$this.attr('title') || ''}"
>
$
{
$this
.
html
()}
<
/mip-link>`; /
/
eslint
-
disable
-
line
$this
.
replaceWith
(
mipLink
);
});
...
...
Please
register
or
login
to post a comment