我想要做的是同时获取项目列表,隐藏它们并将它们分配给这样的变量:
jQuery ->
client_list or= $('.client-list').find('.actions').hide()
但这会中断并且 ActionController 说Error: the variable "client_list" can't be assigned with ||= because it has not been defined.
我该如何解决?这甚至可能吗?
我想要做的是同时获取项目列表,隐藏它们并将它们分配给这样的变量:
jQuery ->
client_list or= $('.client-list').find('.actions').hide()
但这会中断并且 ActionController 说Error: the variable "client_list" can't be assigned with ||= because it has not been defined.
我该如何解决?这甚至可能吗?