Vue refers to a plug-in that is externally dependent on jquery, and cannot find the method inside the plug-in

Page run error report:

:

question: because the xs plug-in relies on jquery, an error has been reported due to the loading order, is there any way to ensure that jquery loads first and completes the
attempt:

import xsimport xs
1import xs1
jqueryxs

this error should be $('.secondmiddle p'), which did not get the element, causing the method xs999 () to report an error

.

if you can determine that the jq has been referenced, it extends to the element that the component fetches without loading the jq.

solution: use this line of code in the life hook updated

Menu