{volist?name="Websites"?id="Website"}
????{literal}<form?action="update"?method="post">{/literal}
????????<tr?class="row">
????????<td?class="col-xs-3?col-sm-3?col-md-3">
????????????<input?type="text"?class="form-control"?name="webname"?value="{$Website->getData('webname')}">
????????</td>
????????<td?class="col-xs-5?col-sm-5?col-md-6">
????????<input?type="text"?class="form-control"?name="website"?value="{$Website->getData('website')}">
????????</td>
????????<td?class="col-xs-1?col-sm-1?col-md-1">
????????<input?type="text"?class="form-control"?name="rank"?value="{$Website->getData('rank')}">
????????</td>
????????<td?class="col-xs-3?col-sm-3?col-md-2">
????????????<button?type="sumbit"?class="btn?btn-primary">修改網(wǎng)址</button>
????????<input?type="hidden"?name="w_id"?value="{$Website->getData('w_id')}">
????????<button?type="button"?class="btn?btn-danger">刪除</button>
????</td>
????????</tr>
????{literal}</form>{/literal}
{/volist}? RT,最后前端輸出代碼看圖:? 紅色的部分就是我目前遇到的問題,不知道為什么,{volist}標(biāo)簽循環(huán)輸出<tr><td>還有里面的按鈕都沒有問題,只有<form>標(biāo)簽被自動(dòng)補(bǔ)全?? 此外,綠色的地方也是我不解的問題,為什么后面會(huì)有== $0 這應(yīng)該是thinkphp的問題吧? 為什么呢??最后附上目前做出來的樣子:
1 回答
已采納

慕田峪3555374
TA貢獻(xiàn)137條經(jīng)驗(yàn) 獲得超18個(gè)贊
首先第一個(gè)問提說一下,form標(biāo)簽不用{literal}是可以輸出的,如果你非要用的話,你可以不用寫結(jié)束標(biāo)簽看能不能解決自動(dòng)補(bǔ)全問題,至于你的第二個(gè)問題我也沒弄明白,但是,根據(jù)你要做的東西來看,你這樣其實(shí)體驗(yàn)感不是很好,一般都是用ajax來做的
添加回答
舉報(bào)
0/150
提交
取消