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.
我在我的 C# MVC 应用程序中使用 Jqgrid。一切正常。但是,当应用程序运行时,视图会显示原始 HTML(div 标记等),然后使用 Jqgrid 重绘屏幕。有没有办法在网格完全绘制之前隐藏这些 div 标签?谢谢。
假设您的网格被封装在一个 id 为 myGrid 的 Div 中。
您可以做的是在文档就绪事件中使用 $('#myGrid').hide() 隐藏此 div 并连接到jqGrid的 gridComplete 事件并重新显示#myGrid。
坦率地说,我没有这样做,因为我从未遇到过您描述的场景,但根据所描述的,它应该可以工作..让我们知道它是怎么回事..
干杯