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.
我是 MVC 的新手,我必须在 mvc razor 控件上实现样式实际上我想隐藏文件上传控件并在按钮单击时打开文件上传控件我正在使用 razor 文件上传控件
假设您的上传控件称为文件选择器,试试这个......
$('#fileSelector').click();