利用助手(widget)在页面实现表单 控制器中 <?php class YiiFormController extends Controller { public function actionIndex() { $bbsInfoModel = new BbsInfo();//实例化当前要添加数据库中表的模型 //这个array的参数值是让页面中的表单用的 $this->render("index",array("bbsInfoModel"=>$…
方法一. var flag = true; $(function() { $("#interested").click(function() { beInterested(); }); }); function beInterested() { //$("#interested").unbind("click"); if (!flag) { alert("已感兴趣!"); return; } if (flag) { var n…