Rails的hash对象传递到javascript变量

October 1, 2012

  var obj = JSON.parse('<%= hash.to_json.html_safe %>');

Comments