Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wxapp
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
亲子游项目
wxapp
Commits
c8a31f00
Commit
c8a31f00
authored
Oct 08, 2018
by
ArronYR
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix wxParse use in android
parent
05984c50
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pages/guide/index.js
+1
-1
wxParse/html2json.js
+2
-2
No files found.
pages/guide/index.js
View file @
c8a31f00
...
@@ -42,7 +42,7 @@ Page({
...
@@ -42,7 +42,7 @@ Page({
*/
*/
onPullDownRefresh
:
function
()
{
onPullDownRefresh
:
function
()
{
this
.
setData
({
this
.
setData
({
task
s
:
[],
guide
s
:
[],
loading
:
true
,
loading
:
true
,
hasMore
:
true
,
hasMore
:
true
,
...
...
wxParse/html2json.js
View file @
c8a31f00
...
@@ -109,14 +109,14 @@ function html2json(html, bindName) {
...
@@ -109,14 +109,14 @@ function html2json(html, bindName) {
var
name
=
attr
.
name
;
var
name
=
attr
.
name
;
var
value
=
attr
.
value
;
var
value
=
attr
.
value
;
if
(
name
==
'class'
)
{
if
(
name
==
'class'
)
{
console
.
dir
(
value
);
//
console.dir(value);
// value = value.join("")
// value = value.join("")
node
.
classStr
=
value
;
node
.
classStr
=
value
;
}
}
// has multi attibutes
// has multi attibutes
// make it array of attribute
// make it array of attribute
if
(
name
==
'style'
)
{
if
(
name
==
'style'
)
{
console
.
dir
(
value
);
//
console.dir(value);
// value = value.join("")
// value = value.join("")
node
.
styleStr
=
value
;
node
.
styleStr
=
value
;
}
}
...
...
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