当我试图改变的状态input[type="email"]上onChange使用事件this.setState({email: e.target.value}),我得到这一堆控制台警告(Chrome浏览器)的:
DOMPropertyOperations.js:143 The specified value "s" is not a valid email address.
DOMPropertyOperations.js:143 The specified value "so" is not a valid email address.
DOMPropertyOperations.js:143 The specified value "som" is not a valid email address.
DOMPropertyOperations.js:143 The specified value "some" is not a valid email address.
Run Code Online (Sandbox Code Playgroud)
当您更改时会发生这种奇怪的行为state,如果您传递数据,则props所有工作都很棒.
有任何想法吗?
PS我添加noValidate到表单中.
我想用双换行来分割此文本(歌曲),我使用ajax(获取API)从php中获取它
You sad me goodbye
You did let me see
Then you[[em]] let me bye
So you let[[F]] me bye
know this can be
You know[[em]] I don't lie
This happened to me
Remember - we[[D]] knew
I can't fit my mind
I'm feeling[[C]] so blue
Why you telling «bye»
So you let me bye
I know[[F]] this can be
You know I don't lie
This happened to me[[A]]
This happened to me[[A]]
You sad me[[A]] goodbye
You did let …Run Code Online (Sandbox Code Playgroud)