Now I have some li's that are bound to the click event @click="a()" and the id of each li is different. Now I want to trigger the @click event of the li with a certain id when I want to enter the page. May I ask how to write .click() using jQuery but it has no effect?
For example
For example, the IDs of li are 1 2 3 4 5. I want to enter the page and trigger the @click event of li with ID 5. This can be solved using jQuery. Can also
@click="click ($index)"
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<ul>
</body>
</html>
是这个意思?
The trigger of this dom is directly inside mounted