Home  >  Article  >  Web Front-end  >  How to solve the problem of being unable to dynamically modify the URL address of the jqgrid component in vue

How to solve the problem of being unable to dynamically modify the URL address of the jqgrid component in vue

亚连
亚连Original
2018-06-02 14:40:261823browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn