0

我正在开发 Ruby on rails 应用程序,基本上这是我的观点

<%= @h %>
 // some changes to @h which is n total_span
jQuery.ajax({
data: 'val=' + total_span,
dataType: 'script',
type: 'post',
url: "/portfolio/slide_change"
});

Slide_change 是这样的:

j=params[:val]
g=TargetPortfolio.new
@h=g.finding_the_concerned_id(j)  
render "target_port"

target_port - 视图文件的名称。

我没有得到 @h 的刷新值,任何猜测我错了。但是在我的页面中,我没有得到 @h 的刷新值,

4

0 回答 0