一些疑问,和随心笔记

来源:互联网 发布:电脑淘宝微淘在哪里找 编辑:程序博客网 时间:2024/05/18 00:32
------------------ajaxForm的怪异处-------------------        $("#add_form").ajaxForm({            dataType: "json",            success : function(obj){                alert(obj.message);exit;                if(obj.errno == 0){                    window.location.href='add_step_2?token='+obj.errdesc;//****                }else{                    //alert(obj.errdesc);                    //if(!obj.parameter) obj.parameter = '';                    alert(obj.status);                }                return false;            }        })http://local.photos.caomall.net/admin.php/Match/add_step_1/token/MTQ%3D在原来display页面接受ajax表格数据http://local.photos.caomall.net/admin.php/Match/add_step_1/token/MTQ%3D在页面中action填写的信息来接受ajax数据;$this->redirect("add_save_1",array('id'=>$id));$this->redirect("add_save_1?id=$id");$this->redirect("add_save_1?id=".$id);.........add_save_1/id/22  这种格式redirect可否写成add_save_1?id=22这样的格式????tp中save方法,有时候失效要删除缓存才可以;里面数据变动,有时候不会立马生效!!!------------------------------------------chrominm ---  ctrl  +  鼠标点击长按刷新按钮,出来三个选项,最下面一个,强制更新缓存,sass调试常用到的,要不看不到效果!!!-----------------------------------    .middle_img:nth-child(odd){      margin-right:16px;    }:nth-child(odd)----获得class为middle_img父类下子类,也就是middle_img的兄弟层,次序为奇数的元素,再定义属性!!--------------------------------------<if condition="($result['is_end'] eq 1) OR ($result['endtime'] gt $now)"><div class="login_match1"><p>活动结束</p></div><else /><div class="login_match"><p>我要参赛</p></div></if>注意:1.condition中的or必须大写OR,才生效      2.<,> 不好用,要有用lt,gt ,eq ,neq等