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.
我正在尝试使用 Javascript.NET,但在添加对静态类的引用时遇到了麻烦。
jc.SetParameter("test", Log);
此外,“Log”是一个静态类。
我得到“是一种类型但被用作变量”错误。
不能实例化静态类。您不能将它们作为参数传递给方法。