JavaScript 又卡住了

syutran · January 21, 2013 · Last by jimrokliu replied at January 21, 2013 · 2103 hits

在 js.erb 中 $("#list").append("<%=j render 'par_assign' %>"); $("<%=j render 'par_assign' %>").appendTo("#list"); 第一句能正常显示,第二句却不能? why?

$("<%=j render 'par_assign' %>").appendTo("#list");这句结果写出来,直接在 js.erb 中写死内容再测试一下,看看有什么问题。

You need to Sign in before reply, if you don't have an account, please Sign up first.