复制一些javascript对象,将其传递到另一个窗口 [英] Copy some javascript object, pass it into another window
问题描述
我正在使用ASP.NET MVC 4框架.我想知道您是否可以复制一个javascript对象并将其传递到另一个视图或窗口?
我有一个视图中的Highcharts图.我想拍摄该图并将其放在另一个窗口中.知道怎么做吗?
到目前为止,我已经有了使用HTML.ActionLink将数据传递到控制器的想法,并有一个Model来表示该数据.然后,我将带有该数据的模型传递到新视图,并在运行时对其进行解释.
I am using the ASP.NET MVC 4 framework. I am wondering if you can copy a javascript object and pass it into another view or window?
I have a Highcharts graph that is in a view. I want to take that graph and put it in another window. Any idea how to do this?
So far I have the idea to use HTML.ActionLink to pass the data to the controller, and have a Model to represent that data. Then I pass that model with that data to the new view and have it be interpreted during runtime.
Is there an easier way to do this?
推荐答案
遵循此解决方案
这篇关于复制一些javascript对象,将其传递到另一个窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!