Grails RemoteFunction params syntax

前端 未结 5 1136
鱼传尺愫
鱼传尺愫 2020-12-31 20:01

I\'m trying to pass a couple of parameters to a remoteFunction in grails but I\'m struggling to format it correctly

I want to pass in the value of a piece of data on

5条回答
  •  渐次进展
    2020-12-31 20:20

    You can actually still use the remote function tag, you just have to write the parameters in a javascript object string, so this actually works quite well in stuff that I work with.

    var denomValue = document.getElementById(denomValue+${it.id}).value;
    onblur=${remoteFunction(
         action:'dave', 
         update:'pack'+it.id, 
         params: '{denom: denomValue, amount: this.value}'
         )}
    

提交回复
热议问题