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.
我知道我可以通过使用 jquery 执行以下操作来访问公共控制器操作:
$("#stuff").load("/controller/action");
但是如何使用 jquery 或 javascript 访问控制器中的私有/受保护操作?
您可以在控制器文件中创建一个操作,该操作将调用您的私有或受保护操作。无法直接调用。