Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
llewan-weixin-sdk
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
llewan
llewan-weixin-sdk
Commits
1e7d2313
Commit
1e7d2313
authored
Sep 26, 2018
by
llewan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
bdb707fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
README.md
README.md
+10
-1
No files found.
README.md
View file @
1e7d2313
...
@@ -212,7 +212,16 @@
...
@@ -212,7 +212,16 @@
//.显示广告
//.显示广告
videoAd.load().then(() => videoAd.show());
videoAd.load().then(() => videoAd.show());
3.9 将数据保存到服务端,同时本地localStorage保存一份数据。
3.9.1 保存到服务端setToServer,先保存一份到本地,同时保存一份到服务端,服务端不做任何处理
直接将数据按照失效时间保存到服务端中。注意 失效时间expireTime,-1:表示永不失效;0:表示默认一天失效时间
3.9.2 获取保存数据getFromServer,如果本地有数据,则获取本地数据直接返回;如果本地数据不存在或者失效,则从服务端获取数据
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