Below I will share with you an article that solves the problem of being unable to dynamically modify the URL address of the jqgrid component in Vue. It has a good reference value and I hope it will be helpful to everyone.
When using the encapsulated jqgrid component in project development, you need to dynamically modify the URL address. Modifying the URL address directly will not change the url address requested by jqgrid. At this time, we can forcibly modify the url address of jqgrid as follows:
$("#accountGrid").setGridParam( //G,P要大写 { url:UrlService.url('www/1') } ) .trigger("reloadGrid");
The above is what I compiled for everyone. I hope it will be helpful to everyone in the future.
Related articles:
vue2.0 Method to implement page navigation prompt guidance
Vue2.0 gives Tab tabs and page switching Method of transitionally adding styles
vue toggle makes a click to switch classes (explanation with examples)
The above is the detailed content of How to solve the problem of being unable to dynamically modify the URL address of the jqgrid component in vue. For more information, please follow other related articles on the PHP Chinese website!