我有一个表格可以更新表格中的多个记录并且工作正常。我也希望能够通过 ajax 添加新记录我正在通过 ajax 加载以下内容但我被黑洞
<?
$uuid = String::uuid();
?>
<tr>
<?=$this->Form->input('Attachment.'.$uuid.'.id',array());?>
<?$this->Form->unlockField('Attachment.'.$uuid.'.id');?>
<td><?=$this->Form->input('Attachment.'.$uuid.'.title',array('label'=>false,'style'=>'float:left;'));?></td>
<?$this->Form->unlockField('Attachment.'.$uuid.'.title');?>
<td><?=$this->Form->input('Attachment.'.$uuid.'.url',array('label'=>false,'style'=>'float:left;'));?> <button onclick="return false;" class="btn attachment_select_file" style="float:left;"><i class="icon-folder-open"></button></i></td>
<?$this->Form->unlockField('Attachment.'.$uuid.'.url');?>
<td><button class="btn"><i class="icon-trash icon-large"></i></button></td>
</tr>
有谁知道可能导致这种情况的原因。
谢谢