Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Object.entries #25

Closed
liangzq1 opened this issue Apr 24, 2020 · 7 comments
Closed

Object.entries #25

liangzq1 opened this issue Apr 24, 2020 · 7 comments
Labels
enhancement New feature or request

Comments

@liangzq1
Copy link

请问怎样在mystore.js,method方法中修改state中的值,其他页面调用这个方法

@zkl2333
Copy link
Contributor

zkl2333 commented Apr 24, 2020

getApp().store.setState({
	msg: "我被修改了,呜呜..."
});

@liangzq1
Copy link
Author

还有一个问题呃。小程序在真机和编辑器上运行都正常,上传到体验版就报Object.entries语法错误,我搜了一下全局,只有store.js中有用到Object.entries,请麻烦帮忙看看什么问题阿。。。
thirdScriptError
Object.entries is not a function. (In 'Object.entries(c)', 'Object.entries' is undefined);at api request success callback function
at o (app-service.js:3034:554)
at r (app-service.js:3034:274)
at value (app-service.js:3034:5387)
at success (app-service.js:3073:3566)
at success (app-service.js:3019:853)
at (WASubContext.js:2:1313158)
at (WAServiceMainContext.js:2:127544)
at E (WASubContext.js:2:420308)
at (WASubContext.js:2:799661)
at emit (WASubContext.js:2:478421)
at rs (WASubContext.js:2:800527)
at (WASubContext.js:2:801806)
at (WASubContext.js:2:463395)
at (WAServiceMainContext.js:2:225318)
at _ (WAServiceMainContext.js:2:77637)
global code

@zkl2333
Copy link
Contributor

zkl2333 commented Apr 24, 2020 via email

@liangzq1
Copy link
Author

好的我试试,谢谢

开启转es6和增强编译

---原始邮件--- 发件人: "liangzq1"<[email protected]> 发送时间: 2020年4月24日(周五) 晚上11:19 收件人: "xiaoyao96/wxMiniStore"<[email protected]>; 抄送: "Comment"<[email protected]>;"zkl2333"<[email protected]>; 主题: Re: [xiaoyao96/wxMiniStore] 请问怎样在mystore.js,method方法中修改state中的值,其他页面调用这个方法 (#25) 还有一个问题呃。小程序在真机和编辑器上运行都正常,上传到体验版就报Object.entries语法错误,我搜了一下全局,只有store.js中有用到Object.entries,请麻烦帮忙看看什么问题阿。。。 thirdScriptError Object.entries is not a function. (In 'Object.entries(c)', 'Object.entries' is undefined);at api request success callback function at o (app-service.js:3034:554) at r (app-service.js:3034:274) at value (app-service.js:3034:5387) at success (app-service.js:3073:3566) at success (app-service.js:3019:853) at (WASubContext.js:2:1313158) at (WAServiceMainContext.js:2:127544) at E (WASubContext.js:2:420308) at (WASubContext.js:2:799661) at emit (WASubContext.js:2:478421) at rs (WASubContext.js:2:800527) at (WASubContext.js:2:801806) at (WASubContext.js:2:463395) at (WAServiceMainContext.js:2:225318) at _ (WAServiceMainContext.js:2:77637) global code — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

@xiaoyao96
Copy link
Owner

看来我有必要把Object.entries给弄个polyfill..下个版本加吧...

@zkl2333
Copy link
Contributor

zkl2333 commented Apr 26, 2020

看来我有必要把Object.entries给弄个polyfill..下个版本加吧...

你已经十八天没有commit了

@xiaoyao96
Copy link
Owner

看来我有必要把Object.entries给弄个polyfill..下个版本加吧...

你已经十八天没有commit了

太忙了最近。今天闲下来,改了我另一个px-parser项目。剩下的时间让我养养头发先... 这个issues我打个标签先

@xiaoyao96 xiaoyao96 added the enhancement New feature or request label Apr 26, 2020
@xiaoyao96 xiaoyao96 changed the title 请问怎样在mystore.js,method方法中修改state中的值,其他页面调用这个方法 Object.entries Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants