摘要: public function _initialize(){ //$top_img = M('adv')->where(array('adv_id'=>1057))->find(); //this->assign('top_img',$top_img); echo "2342... 阅读全文
posted @ 2017-09-20 20:53 不拨牙 阅读(111) 评论(0) 推荐(0)
摘要: $phonenumber = '13712345678'; if(preg_match("/^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|17[0-9]|18[0|1|2|3|5|6|7|8|9])\d{8}$/",$phonenumber)){ ... 阅读全文
posted @ 2017-09-20 20:53 不拨牙 阅读(614) 评论(0) 推荐(0)
摘要: __MODULE____CONTROLLER__ 阅读全文
posted @ 2017-09-20 20:53 不拨牙 阅读(174) 评论(0) 推荐(0)
摘要: public function keyWord($condition) { //如果搜索的是上次的计算的结果,就直接返回 $momon = Model()->table('goods')->limit(false)->field('goods_name')... 阅读全文
posted @ 2017-09-20 20:53 不拨牙 阅读(168) 评论(0) 推荐(0)
摘要: 某些非text元素,如a、button等用于触发时间的标签可已将要传的数据放在一个属性中,如data,这个属性必须是不影响样式的,可以使用任意非html定义的名字命名属性,然后将数据传到属性中,按钮然后通过attr这个方法获取属性内容$(‘#but’).attr(‘data’) 其实... 阅读全文
posted @ 2017-09-20 20:53 不拨牙 阅读(2382) 评论(0) 推荐(0)
摘要: ``` 软件下载官网:https://git-scm.com/ ******************** centos 安装 git ************ #yum install git ********************运行php文件***************** php [php文件名] *****************基本命令**************... 阅读全文
posted @ 2017-09-20 13:46 不拨牙 阅读(204) 评论(0) 推荐(0)