1 回答

TA貢獻(xiàn)1780條經(jīng)驗(yàn) 獲得超5個(gè)贊
$("#rm_option").jqteVal('<?php echo $rs_sql['rm_option'] == 1:'checked':'' ?>');
$("#point_option").jqteVal('<?php echo $rs_sql['point_option'] == 1:'checked':'' ?>');
$("#partial_option").jqteVal('<?php echo $rs_sql['partial_option'] == 1:'checked':'' ?>');
更改為:
$("#rm_option").jqteVal('<?php echo $rs_sql['rm_option'] == 1?'checked':'' ?>');
$("#point_option").jqteVal('<?php echo $rs_sql['point_option'] == 1?'checked':'' ?>');
$("#partial_option").jqteVal('<?php echo $rs_sql['partial_option'] == 1?'checked':'' ?>');
你可以找到 php 速記手冊 if/else
- 1 回答
- 0 關(guān)注
- 112 瀏覽
添加回答
舉報(bào)