Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们正在使用 ui-grid。我们要搜索带有许多列的网格。因此,将 url 上的所有过滤条件作为 routeparams 发送有点尴尬。可以使用 $http.post 发出搜索 Web api 请求吗?还是有其他解决方案?
您可以将 json 对象作为 GET 请求中的一个参数发送。在发送之前对对象进行字符串化,并在服务器端接收它时对其进行解析。这样你只有一个参数。– 马库斯 H
谢谢马库斯 H