且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Ember Uncaught RangeError:超出最大调用堆栈大小

更新时间:2022-06-14 23:28:27

我在诀窍是使用 model 而不是 this 来构建编辑路径:

The trick is to build the edit route with model instead of this:

%script#post{type: "text/x-handlebars"}
  %h2= hb 'title'
  = hb 'body'
  %p
    = hb 'linkTo "post.edit" model' do
      Edit
  = hb 'outlet'