博客园 - 叫我小洋
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=151645
2019-04-28T05:24:20Z
叫我小洋
https://www.cnblogs.com/sheapchen/
feed.cnblogs.com
https://www.cnblogs.com/sheapchen/p/10783437.html
server酱 - 叫我小洋
该文被密码保护。
2019-04-28T05:24:00Z
2019-04-28T05:24:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
该文被密码保护。
https://www.cnblogs.com/sheapchen/p/015a1c8a2ebdd60d6c61e3372a5b51c0.html
ln 软链 - 叫我小洋
ln -s a b 中的 a 就是源文件,b是链接文件名,其作用是当进入b目录,实际上是链接进入了a目录如上面的示例,当我们执行命令 cd /gamestat/的时候 实际上是进入了 /home/gamestat/ 值得注意的是执行命令的时候,应该是a目录已经建立,目录b没有建立。我最开始操作的是也把b目录给建立了,结果就不对了 删除软链接: rm -rf b 注意不是rm -rf ...
2016-01-11T09:10:00Z
2016-01-11T09:10:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】ln -s a b 中的 a 就是源文件,b是链接文件名,其作用是当进入b目录,实际上是链接进入了a目录如上面的示例,当我们执行命令 cd /gamestat/的时候 实际上是进入了 /home/gamestat/ 值得注意的是执行命令的时候,应该是a目录已经建立,目录b没有建立。我最开始操作的是也把b目录给建立了,结果就不对了 删除软链接: rm -rf b 注意不是rm -rf ... <a href="https://www.cnblogs.com/sheapchen/p/015a1c8a2ebdd60d6c61e3372a5b51c0.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/7fe95c95a425d9eb1284a3c6f9517480.html
crontab下git命令无效 - 叫我小洋
原因crontab默认的 path 设置和系统自身的有区别git 命令放在 /usr/local/bin/ 目录 whereis git而crontab 却在 /sbin:/bin:/usr/sbin:/usr/bin解决办法以下是crontab实例git pull 修改成 /usr/local/bin/git pull#礼拜一到礼拜六的8-22点每分钟更新 update_web....
2015-12-25T02:31:00Z
2015-12-25T02:31:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】原因crontab默认的 path 设置和系统自身的有区别git 命令放在 /usr/local/bin/ 目录 whereis git而crontab 却在 /sbin:/bin:/usr/sbin:/usr/bin解决办法以下是crontab实例git pull 修改成 /usr/local/bin/git pull#礼拜一到礼拜六的8-22点每分钟更新 update_web.... <a href="https://www.cnblogs.com/sheapchen/p/7fe95c95a425d9eb1284a3c6f9517480.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/ae0adba459a40b393eb287b8486dbc6f.html
下拉框 带提示 - 叫我小洋
field( $model, 'unit_id', [ 'inputOptions' => [ 'class' => 'required', ...
2015-12-24T09:12:00Z
2015-12-24T09:12:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】field( $model, 'unit_id', [ 'inputOptions' => [ 'class' => 'required', ... <a href="https://www.cnblogs.com/sheapchen/p/ae0adba459a40b393eb287b8486dbc6f.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/6bde6d87dcffe8688112409246ed7eb9.html
where 常用条件范例 - 叫我小洋
where() public methodSets the WHERE part of the query.The method requires a $condition parameter, and optionally a $params parameter specifying the values to be bound to the query.The $condition param...
2015-12-24T09:11:00Z
2015-12-24T09:11:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】where() public methodSets the WHERE part of the query.The method requires a $condition parameter, and optionally a $params parameter specifying the values to be bound to the query.The $condition param... <a href="https://www.cnblogs.com/sheapchen/p/6bde6d87dcffe8688112409246ed7eb9.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/45a78051f85429d89bd31fc4a7043ac7.html
打印sql - 叫我小洋
$query=$sql->where([ 'test_id'=>24, 'name'=>'小洋' ]);//打印sql;$query->prepare(Yii::$app->db->queryBuilder)->createCommand...
2015-12-24T09:10:00Z
2015-12-24T09:10:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】$query=$sql->where([ 'test_id'=>24, 'name'=>'小洋' ]);//打印sql;$query->prepare(Yii::$app->db->queryBuilder)->createCommand... <a href="https://www.cnblogs.com/sheapchen/p/45a78051f85429d89bd31fc4a7043ac7.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/36a2c4527c77eddcf63361075e28dabd.html
直接执行sql字符串 - 叫我小洋
$sql_tmp= "UPDATE `eabc_order_detail` set send_number=num where order_sn='".$model_order->order_sn."'";Yii::$app->db->createCommand($sql_tmp)->execute();来自为知笔记(Wiz)
2015-12-24T09:09:00Z
2015-12-24T09:09:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】$sql_tmp= "UPDATE `eabc_order_detail` set send_number=num where order_sn='".$model_order->order_sn."'";Yii::$app->db->createCommand($sql_tmp)->execute();来自为知笔记(Wiz) <a href="https://www.cnblogs.com/sheapchen/p/36a2c4527c77eddcf63361075e28dabd.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/ed0f3b2fe4e09692b5206a9863ebfb10.html
注册后免登陆 - 叫我小洋
$loginForm = new UserForm(['scenario' => 'login2']); $loginForm->load(Yii::$app->request->post()); $loginForm->validate(); $loginForm->log...
2015-12-24T09:08:00Z
2015-12-24T09:08:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】$loginForm = new UserForm(['scenario' => 'login2']); $loginForm->load(Yii::$app->request->post()); $loginForm->validate(); $loginForm->log... <a href="https://www.cnblogs.com/sheapchen/p/ed0f3b2fe4e09692b5206a9863ebfb10.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/da39c93501f74d1b04e2181cb0e71706.html
yii2 rules 验证规则 - 叫我小洋
yii2 框架定义的约束 public $builtInValidators = [ 'boolean' => 'yii\validators\BooleanValidator', 'captcha' => 'yii\captcha\CaptchaValidator', 'compare' => 'yii\validators\CompareVa...
2015-12-24T09:07:00Z
2015-12-24T09:07:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】yii2 框架定义的约束 public $builtInValidators = [ 'boolean' => 'yii\validators\BooleanValidator', 'captcha' => 'yii\captcha\CaptchaValidator', 'compare' => 'yii\validators\CompareVa... <a href="https://www.cnblogs.com/sheapchen/p/da39c93501f74d1b04e2181cb0e71706.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/79d7612201456e46fde65656874030fd.html
批量插入记录 - 叫我小洋
$insertNum=\Yii::$app->db->createCommand()->batchInsert('{{%join_relation}}',['real_name','status','seller_muser_id','buyer_muser_id','opera_time'],$arrJoin)->execute(); if($insertNum!=...
2015-12-24T09:07:00Z
2015-12-24T09:07:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】$insertNum=\Yii::$app->db->createCommand()->batchInsert('{{%join_relation}}',['real_name','status','seller_muser_id','buyer_muser_id','opera_time'],$arrJoin)->execute(); if($insertNum!=... <a href="https://www.cnblogs.com/sheapchen/p/79d7612201456e46fde65656874030fd.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/4d9fc74108d0caf050859562924ad903.html
解决Yii2中刷新网页时验证码不刷新的问题 - 叫我小洋
解决Yii2中刷新网页时验证码不刷新的问题 [ 2.0 版本 ] ljfrocky 2015-05-30 19:39:00 1304次浏览 5条评论 10 11 0在Yii2框架中,如果在表单中使用了验证码,会发现一个奇怪的小问题,就是刷新网页时验证码图片不会跟着刷新。网上的解决方法网上的大多数解决方法都是通过修改vendor/yiisoft/yii2/captcha/CaptchaAct...
2015-12-24T09:02:00Z
2015-12-24T09:02:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】解决Yii2中刷新网页时验证码不刷新的问题 [ 2.0 版本 ] ljfrocky 2015-05-30 19:39:00 1304次浏览 5条评论 10 11 0在Yii2框架中,如果在表单中使用了验证码,会发现一个奇怪的小问题,就是刷新网页时验证码图片不会跟着刷新。网上的解决方法网上的大多数解决方法都是通过修改vendor/yiisoft/yii2/captcha/CaptchaAct... <a href="https://www.cnblogs.com/sheapchen/p/4d9fc74108d0caf050859562924ad903.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/9042236d92f7c6e6737e793959578e2a.html
controller向layout传值 - 叫我小洋
Yii2,layout中使用Controller的值,Controller向layout传值的两种方式。yii2中在通过Controller向layout中传值,layout中访问Controller中的值,1、第一种,通过layout变量数组赋值12$view = Yii::$app->view;$view->params['layout_data'] = '传给layout的值';2、第二种,...
2015-12-24T09:02:00Z
2015-12-24T09:02:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】Yii2,layout中使用Controller的值,Controller向layout传值的两种方式。yii2中在通过Controller向layout中传值,layout中访问Controller中的值,1、第一种,通过layout变量数组赋值12$view = Yii::$app->view;$view->params['layout_data'] = '传给layout的值';2、第二种,... <a href="https://www.cnblogs.com/sheapchen/p/9042236d92f7c6e6737e793959578e2a.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/5bd0eb572b0f6e4439de4fae66eb88fc.html
关联表 重命名 - 叫我小洋
/** * Explain:取得买家名称 */ public function getBuyerName(){ return $this->hasOne(UserModel::className(),['user_id'=>'buyer_id'])->from(UserModel::tableName().' u1'); }来自为知笔记(Wiz)
2015-12-24T09:01:00Z
2015-12-24T09:01:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】/** * Explain:取得买家名称 */ public function getBuyerName(){ return $this->hasOne(UserModel::className(),['user_id'=>'buyer_id'])->from(UserModel::tableName().' u1'); }来自为知笔记(Wiz) <a href="https://www.cnblogs.com/sheapchen/p/5bd0eb572b0f6e4439de4fae66eb88fc.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/3e9d31e31355edb495c4a54e57249b83.html
定义action的允许访问方式 - 叫我小洋
publicfunction behaviors(){return['verbs'=>['class'=>VerbFilter::className(),'actions'=>['delete'=>['post'],],],];}来自为知笔记(Wiz)
2015-12-24T08:57:00Z
2015-12-24T08:57:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】publicfunction behaviors(){return['verbs'=>['class'=>VerbFilter::className(),'actions'=>['delete'=>['post'],],],];}来自为知笔记(Wiz) <a href="https://www.cnblogs.com/sheapchen/p/3e9d31e31355edb495c4a54e57249b83.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/12e8b0ce74155c9b828e72439a2e0f6c.html
js 拷贝clone - 叫我小洋
arrayArray.prototype.clone=function(){ return this.slice(0); }对象var o = {a: [1]}; //浅拷贝 var o1 = $.extend({}, o); console.log(o1.a === o.a); // true //深拷贝 var o2 = $.extend(true, {}, o); console.lo...
2015-12-24T08:56:00Z
2015-12-24T08:56:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】arrayArray.prototype.clone=function(){ return this.slice(0); }对象var o = {a: [1]}; //浅拷贝 var o1 = $.extend({}, o); console.log(o1.a === o.a); // true //深拷贝 var o2 = $.extend(true, {}, o); console.lo... <a href="https://www.cnblogs.com/sheapchen/p/12e8b0ce74155c9b828e72439a2e0f6c.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/df6ff8ff932bd44c2ec0f7a97c6faca1.html
是否包含指定字符串 - 叫我小洋
var str="我爱中国";if(str.indexOf("中国")>=0){ alert("含有此字符串");}else{ alert("没有此字符串");} 来自为知笔记(Wiz)
2015-12-24T08:55:00Z
2015-12-24T08:55:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】var str="我爱中国";if(str.indexOf("中国")>=0){ alert("含有此字符串");}else{ alert("没有此字符串");} 来自为知笔记(Wiz) <a href="https://www.cnblogs.com/sheapchen/p/df6ff8ff932bd44c2ec0f7a97c6faca1.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/b27589ff744c7fc75f072eeddb501acb.html
indexOf()定义和用法 - 叫我小洋
indexOf()定义和用法indexOf() 方法可返回某个指定的字符串值在字符串中首次出现的位置。语法stringObject.indexOf(searchvalue,fromindex)参数描述searchvalue 必需。规定需检索的字符串值。fromindex 可选的整数参数。规定在字符串中开始检索的位置。它的合法取值是 0 到 stringObject.length - 1...
2015-12-24T08:54:00Z
2015-12-24T08:54:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】indexOf()定义和用法indexOf() 方法可返回某个指定的字符串值在字符串中首次出现的位置。语法stringObject.indexOf(searchvalue,fromindex)参数描述searchvalue 必需。规定需检索的字符串值。fromindex 可选的整数参数。规定在字符串中开始检索的位置。它的合法取值是 0 到 stringObject.length - 1... <a href="https://www.cnblogs.com/sheapchen/p/b27589ff744c7fc75f072eeddb501acb.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/af3a9afae848f43c1cf112aaec72892f.html
直接借鉴的 ids拼接 - 叫我小洋
function _getIds(selectedIds, targetType){ var ids = ""; var $box = targetType == "dialog" ? $.pdialog.getCurrent() : navTab.getCurrentPanel(); $box.find("input:checked...
2015-12-24T08:53:00Z
2015-12-24T08:53:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】function _getIds(selectedIds, targetType){ var ids = ""; var $box = targetType == "dialog" ? $.pdialog.getCurrent() : navTab.getCurrentPanel(); $box.find("input:checked... <a href="https://www.cnblogs.com/sheapchen/p/af3a9afae848f43c1cf112aaec72892f.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/b7c032bc77ff48487faa04dd42c30deb.html
window.location.href webkit不兼容 - 叫我小洋
window.event.returnValue=false;在location.href后加上后修复来自为知笔记(Wiz)
2015-12-24T08:52:00Z
2015-12-24T08:52:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】window.event.returnValue=false;在location.href后加上后修复来自为知笔记(Wiz) <a href="https://www.cnblogs.com/sheapchen/p/b7c032bc77ff48487faa04dd42c30deb.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/sheapchen/p/e15ceddc927bd37e650d59b09ba3ebf9.html
datePecker时间控件区间写法 - 叫我小洋
成交时间: 至 来自为知笔记(Wiz)
2015-12-24T08:51:00Z
2015-12-24T08:51:00Z
叫我小洋
https://www.cnblogs.com/sheapchen/
【摘要】成交时间: 至 来自为知笔记(Wiz) <a href="https://www.cnblogs.com/sheapchen/p/e15ceddc927bd37e650d59b09ba3ebf9.html" target="_blank">阅读全文</a>