{"action":"created","issue":{"url":"https://api.github.com/repos/yvanwangl/AccountSystem/issues/4","repository_url":"https://api.github.com/repos/yvanwangl/AccountSystem","labels_url":"https://api.github.com/repos/yvanwangl/AccountSystem/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/yvanwangl/AccountSystem/issues/4/comments","events_url":"https://api.github.com/repos/yvanwangl/AccountSystem/issues/4/events","html_url":"https://github.com/yvanwangl/AccountSystem/issues/4","id":302593130,"number":4,"title":"传值问题","user":{"login":"myronlau","id":30238885,"avatar_url":"https://avatars3.githubusercontent.com/u/30238885?v=4","gravatar_id":"","url":"https://api.github.com/users/myronlau","html_url":"https://github.com/myronlau","followers_url":"https://api.github.com/users/myronlau/followers","following_url":"https://api.github.com/users/myronlau/following{/other_user}","gists_url":"https://api.github.com/users/myronlau/gists{/gist_id}","starred_url":"https://api.github.com/users/myronlau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myronlau/subscriptions","organizations_url":"https://api.github.com/users/myronlau/orgs","repos_url":"https://api.github.com/users/myronlau/repos","events_url":"https://api.github.com/users/myronlau/events{/privacy}","received_events_url":"https://api.github.com/users/myronlau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-06T07:35:24Z","updated_at":"2018-03-07T08:20:57Z","closed_at":null,"author_association":"NONE","body":"Hi, 想请教一下StorageForm.jsx 是如何把值传给AddStorage.jsx中的呢？如果是传DatePicker类型的日期过去需要注意些什么？非常感谢。"},"comment":{"url":"https://api.github.com/repos/yvanwangl/AccountSystem/issues/comments/371059841","html_url":"https://github.com/yvanwangl/AccountSystem/issues/4#issuecomment-371059841","issue_url":"https://api.github.com/repos/yvanwangl/AccountSystem/issues/4","id":371059841,"user":{"login":"myronlau","id":30238885,"avatar_url":"https://avatars3.githubusercontent.com/u/30238885?v=4","gravatar_id":"","url":"https://api.github.com/users/myronlau","html_url":"https://github.com/myronlau","followers_url":"https://api.github.com/users/myronlau/followers","following_url":"https://api.github.com/users/myronlau/following{/other_user}","gists_url":"https://api.github.com/users/myronlau/gists{/gist_id}","starred_url":"https://api.github.com/users/myronlau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myronlau/subscriptions","organizations_url":"https://api.github.com/users/myronlau/orgs","repos_url":"https://api.github.com/users/myronlau/repos","events_url":"https://api.github.com/users/myronlau/events{/privacy}","received_events_url":"https://api.github.com/users/myronlau/received_events","type":"User","site_admin":false},"created_at":"2018-03-07T08:20:57Z","updated_at":"2018-03-07T08:20:57Z","author_association":"NONE","body":"@yvanwangl 谢谢你的回复，根据你的回答问题得到解决了。\r\n现在有个新的问题想再请教你，在AddStorageGrid.jsx中，\r\n```\r\n  \tonListCellChange(index, key){\r\n\t\tconst {editProducts} = this.props;\r\n\t\tconst {totalAmount, paymentAmount} = this.state;\r\n\t\treturn ({key, label})=> {\r\n\t\t\tconst dataSource = [...this.state.dataSource];\r\n\t\t\tconst arr = label.match(/([\\u4e00-\\u9fa5\\w]+)/g);\r\n\t\t\tdataSource[index]['productId'] = key;\r\n\t\t\tdataSource[index]['productName'] = arr[0];\r\n\t\t\tdataSource[index]['productUnit'] = arr[1];\r\n\t\t\tthis.setState({dataSource});\r\n\t\t\teditProducts(dataSource, totalAmount, paymentAmount);\r\n\t\t}\r\n\t}\r\n```\r\n\r\n其中```const arr = label.match(/([\\u4e00-\\u9fa5\\w]+)/g);``` 怎么理解？应该怎么用呢？"}}
{"actor":{"display_login":"myronlau"}}