0
構文が無効な理由についての考え方はありますか?Coffeescriptが無効な構文
@foo(@bar('/test', {
password
username
_method: 'GET'
}
)
)
構文が無効な理由についての考え方はありますか?Coffeescriptが無効な構文
@foo(@bar('/test', {
password
username
_method: 'GET'
}
)
)
問題は字下げです。
2番目のかっこを正しく読み取れませんでした。 明示的にインデントを行うと、それは機能します。
@foo(
@bar('/test', {
password
username
_method: 'GET'
}
)
)
または、閉じ括弧のインデントを削除します。
@foo(@bar('/test', {
password
username
_method: 'GET'
}
))
それらの両方が
this.foo(this.bar('/test', {
password: password,
username: username,
_method: 'GET'
}));
として働く