将 ASP.NET MVC 与 Javascript Google Charts 结合使用
我希望在我的 ASP 中使用 Google 组织结构图。 NET MVC 项目。然而,我发现很难理解这如何适合 MVC 架构。
生成图表的 JavaScript 将包含在我的文件头中,并且由于该数据会定期更改,因此需要动态创建它。谁能给我一些关于从哪里开始的建议?
I wish to use Google organisational chart within my ASP.NET MVC project. I am however finding it difficult to get my head around how this would fit into the MVC architecture.
The Javascript to generate the chart will be contained in the head of my file and as this data will reguarly change, it needs to dynamically be created. Can anyone give me any tips on where to begin with this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看 此页面。 Scott Gu 谈论 MVC 3 中的
Sections
。我之前使用过它在head
标记中创建一个部分,以放置仅适用于一个页面的脚本块/样式,这使您可以自由地使用页面特定的脚本/样式,而不会让您的 DOM 变得一团糟。take a look at this page. Scott Gu talks about
Sections
in MVC 3. I've used this before to create a section in thehead
tag to place script block/styles that apply to only one page, this gives you the freedom to use page specific script/styles without make your DOM a jumbled mess.