I don’t understand the difference between find and child. Under what circumstances is find equivalent to children? -PHP Chinese website Q&A-I don’t understand the difference between find and child. Under what circumstances is find equivalent to children? -PHP Chinese website Q&A
I don’t understand the difference between find and child. Under what circumstances is find equivalent to children? -PHP Chinese website Q&A-I don’t understand the difference between find and child. Under what circumstances is find equivalent to children? -PHP Chinese website Q&A
Please watch and learn.
这种情况下
find()用于查找后代元素,children()用于查找子代元素,显然,后代元素就包含了子代元素,因此find的查找范围比children大,你只需在find()括号里面加入适当的选择器就可以实现children()的功能了。