【发布时间】:2011-03-04 23:04:39
【问题描述】:
我正在尝试在 remote_function 中提供几个参数,如下所示:
<?php
echo remote_function(array( 'update' => 'test',
'url' => 'conges/verifdate',
'with' => "'date_deb=' + $('date_debut').value"
));
?>
此代码有效(在我的action.class 中我可以获取参数)。
但是当我尝试给第二个参数时,它不起作用:
<?php
echo remote_function(array( 'update' => 'test',
'url' => 'conges/verifdate',
'with' => "'date_deb=' + $('date_debut').value"."'+&date_fin=' + $('date_fin')"
))
?>
我做错了什么?
【问题讨论】:
标签: javascript ajax symfony1