Notes1:
jQuerySelector [attribute^=value] usage notes under
One written before
1 |
|
is used in the script. Can everyone see the problem?
I have been using this script for a while, but I have never tested it in Firefox.
It can be used normally in other browsers!
Today someone suddenly discovered that the data loaded under Firefox was incorrect.
After a period of debugging, it was finally discovered that there was a problem with the code,
I made a stupid mistake. I only wrote the left bracket and forgot to write the right bracket.
Note 2:
Related HTML:
1 2 3 4 |
|
Related JS code:
1 2 3 |
|
A problem has arisen, it cannot be obtained like this databindAttribute is the img element starting with attr, so how should it be written?
Writing method one:
1 2 |
|
Writing method two:
1 2 |
|
The above is the detailed content of What should you pay attention to when using the [attribute^=value] selector in JQuery?. For more information, please follow other related articles on the PHP Chinese website!