頁(yè)面有一個(gè)這樣的選擇框:
<?php echo html::select('module', $modules, '', "class=' form-control chosen' ")?>
#還有一個(gè)這樣的輸入框:
##PHP寫(xiě)一個(gè)接口,返回對(duì)應(yīng)的placeholder的內(nèi)容,前端用ajax調(diào)用這個(gè)接口,把返回的內(nèi)容覆蓋之前的placeholder即可。