popitup = (url) ->
newwindow = window.open(url, "name", "height=200,width=150")
newwindow.focus() if window.focus
false
这是我的代码,但我想将弹出窗口链接到 haml 文件而不是 URL 以显示在我的弹出窗口中
%h1 popup
br
%input{:name => "option1", :type => "checkbox", :value => "Milk"}
Milk
%br
%input{:name => "option2", :type => "checkbox", :value => "Butter"}
Butter
%br
%input{:name => "option3", :type => "checkbox", :value => "Cheese"}
Cheese
%br
这是我正在使用咖啡脚本的haml文件