Passing two values for one parameter inside RemoteFunction
问题 GSP <g:select from="['AFFILIATES', 'CSE','DISPLAYADS','EMAIL','MOBILEWEB','OTHERS','ORGANIC','SEO', 'SEM']" name="mv" id = "mv" onchange="${remoteFunction( controller:'Pgtyp', action:'ajaxGetMv', params:'\'mv=\' + escape(this.value)+\'&date_hour=\'+z+\'&date_hour=\'+ b', //params:'\'mv=\'+this.value', onSuccess: 'printpgtyp(data)')}" ></g:select> Controller def pgtyp = Pgtyp.executeQuery("select p.date_hour ,p.visits, p.mv, p.browser,p.pagetype,p.platform,p.device,p.time_period from Pgtyp p