Home > front end >  About the click is invalid in js problem!
About the click is invalid in js problem!

Time:10-11

Access object and then click the no response, prompt please see picture!

CodePudding user response:

Click is a way to call methods to add parentheses when the click ()

CodePudding user response:

reference 1/f, the sky wave response:
click is a method and invoke methods to add parentheses when the click ()

I was too stupid, add parentheses after the prompt undefined what happened? Can obtain the div object, or can't trigger

CodePudding user response:

refer to the second floor weixin_45531869 response:
Quote: reference 1/f, the sky wave response:
click is a way to call methods to add parentheses when the click ()

I was too stupid, add parentheses after the prompt undefined what happened? Can obtain the div object, or can't trigger

What exactly do you want to do?
Click () method is to simulate the trigger element has been binding the onclick event, it does not return values, so the return is undefined

CodePudding user response:

reference 3 floor sky waves reply:
Quote: refer to the second floor weixin_45531869 response:

Quote: reference 1/f, the sky wave response:
click is a method and invoke methods to add parentheses when the click ()

I was too stupid, add parentheses after the prompt undefined what happened? Can obtain the div object, or can't trigger

What exactly do you want to do?
Click () method is to simulate the trigger element has been binding the onclick event, it does not return values, so the return is undefined

Is access to div below a div object, and then established condition judgment automatically click this div, the following div id no only through the array to find, is like this, you said I probably can understand, but do not know the specific operation how???????
  • Related