Vue adds external time plugin without triggering v-model event to change data

jquery date plugin used

 

The final problem is that the oninput event is not activated after the completion date is selected, so the v-model is not activated to change the date

Solutions:

  Go to the plugin js file and add the simulated input event when assigning it to the dom.

  For example, jquery writing

  $(element).trigger("input"); 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325217162&siteId=291194637