$this->Js->buffer("
var searchTerm = $(this).html();
var searchId = $(this).attr( data-tag );
$( .tags ).append( <input type= text value= +searchTerm+ name= data[Tag][tags][ +searchId+ ] );
");
That is your code. Inside the PHP ""
you must write single quotes
or escape double quotes "
. You have chosen to use single quotes, which is fine, except the generated JS code must also follow these rules.
$( .tags ).append( <input type= text value= +searchTerm+ name= data[Tag][tags][ +searchId+ ] );
问题如下: <input category=text ...>
。 第一,你错过了<代码>>;- 其次,您必须使用<代码><>>>>>至text
,<input category=“text”.>
is okay. 但是,这将与购买力平价相冲突,因为“>>
”被用于PHP的铺设。 你们不得不逃脱双面: <input category=“text.>
。
www.un.org/Depts/DGACM/index_french.htm 如果要直接在超文本模板中书写 Java字,就会使你节省这么多头。