阅读背景:

当我的JavaScript和C#代码库重叠时,如何减少维护?

来源:互联网 

I have a library with some objects that I use both from C# and JavaScript. There are several objects, let's call one of them Foo, with the same basic implementation in C# and JavaScript. When I want to transmit an object of this type from the server to the browser, I simply call Foo.ToJson() to serialize this object to JSON and then revive the object on the browser side with a safe eval() operation.I have a library with some objects that I use b




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: