[英]Run javascript on server and send DOM results to client
I've been stuck on this one for a while, so it's time to consult the pros. 我已经坚持了一段时间,现在是时候咨询专家了。 I've created a charting application that uses javascript to do heavy DOM manipulation/generation on the client (creating barcharts made of colored divs, etc).
我已经创建了一个图表应用程序,该应用程序使用javascript在客户端上进行繁重的DOM操作/生成(创建由彩色div等组成的条形图)。
Long story short, I want to avoid sending my js library to the client. 长话短说,我想避免将我的js库发送给客户端。 Is there any way to create the content on the server, using my existing javascript library, and only send the javascript-generated HTML to the client?
有什么方法可以使用我现有的javascript库在服务器上创建内容,并且仅将javascript生成的HTML发送给客户端?
Thanks for taking the time! 感谢您抽出宝贵的时间!
Try to convert your JavaScript DOM code to Java W3C DOM on ItsNat , for instance, take a look to this example . 尝试在ItsNat上将JavaScript DOM代码转换为Java W3C DOM,例如,看一下这个示例 。 Umm is based on Java not .Net.
Umm是基于Java而不是.Net。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.