【发布时间】:2013-11-14 03:33:55
【问题描述】:
我是RoR的用户,但我的英语不太好。
在我的网络应用程序中,我想在 explore(windows) 或 finder(mac) 中打开特定文件夹,只需单击链接。
如何做到这一点?
我尝试了这些,但它们没有按预期工作。
我用haml写的。
%a{href: "file:///c:¥SAMPLE¥Sample_bar.png", target: "_blank"} click here!
%a{href: "file://localhost/c|¥SAMPLE¥Sample_bar.png", target: "_blank"} click here!
%a{href: "file:///c|¥SAMPLE¥Sample_bar.png", target: "_blank"} click here!
%a{href: "file://localhost/c:¥SAMPLE¥Sample_bar.png", target: "_blank"} click here!
%a{href: "file:///C:¥SAMPLE¥Sample_bar.png", target: "_blank"} click here!
%a{href: "file://localhost/C|¥SAMPLE¥Sample_bar.png", target: "_blank"} click here!
%a{href: "file:///C|¥SAMPLE¥Sample_bar.png", target: "_blank"} click here!
%a{href: "file://localhost/C:¥SAMPLE¥Sample_bar.png", target: "_blank"} click here!
你会帮我吗?
【问题讨论】:
标签: html ruby-on-rails