简体   繁体   中英

Call jquery function from controller in MVC

Can someone tell how to call a Jquery function from a MVC controller .

I was looking at this answer but I am not sure what page means here.

Thanks.

Something strange about page for me too. I think that you can use SignalR library for your purpose. It allows to call javascript functions from client side inside controller and much much more cool things.

You can't call js functions from mvc controller. But you can send messages from server side to client side that will rise events via websockets or server push technology.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM