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.
我有这样的事情:
-@ var id:String %div{:dojoType => 'dojo.data.ItemFileReadStore', :jsType => 'store', :url => "/path/to/resource?id=#{id}"}
我希望变量插值可以在这里工作,但它只是放入#{id}html 中。我也试过:
#{id}
%div{:url => 'path/to/resource?id='+id}
这甚至没有编译。这样做的正确方法是什么?
正确的语法是:
%div{:url => {"/path/to/resource?id="+id}}