摘要:
调用YII框架中jquery:Yii::app()->clientScript->registerCoreScript('jquery'); framework/web/js/source的js,其中registerCoreScriptkey调用的文件在framework/web/js/packag 阅读全文
posted @ 2020-05-23 13:38
cnlovefish
阅读(240)
评论(0)
推荐(0)
摘要:
执行SQL $connection=Yii::app()->db; // 假设你已经建立了一个 "db" 连接 $sql = "SELECT * FROM tbl_log WHERE logid<:logid"; $command=$connection->createCommand($sql); 阅读全文
posted @ 2020-05-23 13:36
cnlovefish
阅读(1904)
评论(0)
推荐(0)
摘要:
我们每次使用命令 git clone https://xxx.com/android-app.git 默认 clone 的是这个仓库的 master 分支。 使用Git下载指定分支命令为:git clone -b 分支名 仓库地址 使用Git下载v.2.8.1分支代码,使用命令:git clone 阅读全文
posted @ 2020-05-23 13:34
cnlovefish
阅读(4660)
评论(0)
推荐(0)
摘要:
给函数传递参数的时候 map、slice、channel是按引用传递的 同一个变量不能用 := 这种方式创建并赋值两次。 一个包(package)的func 、结构体类型变量如果要被外部的包调用。func 函数名称、结构体名称首字母要大写。 包名为 main 的包为应用程序的入口,其他包不能使用 一 阅读全文
posted @ 2020-05-23 13:32
cnlovefish
阅读(154)
评论(0)
推荐(0)
摘要:
https://zhidao.baidu.com/question/265959812183701925.html 在使用git pull代码时,经常会碰到有冲突的情况,提示如下信息: error: Your local changes to 'c/environ.c' would be overw 阅读全文
posted @ 2020-05-23 13:22
cnlovefish
阅读(6328)
评论(0)
推荐(0)
摘要:
在线调试: 先切换成www用户进入项目的根目录比如/data/wwwroot/website su www cd /data/wwwroot/website vi ./api/controllers/UserController.php 用checkout覆盖回来 git checkout ./ap 阅读全文
posted @ 2020-05-23 13:21
cnlovefish
阅读(193)
评论(0)
推荐(0)
摘要:
git add 添加 多余文件 这样的错误是由于, 有的时候 可能 git add . (空格+ 点) 表示当前目录所有文件,不小心就会提交其他文件 git add 如果添加了错误的文件的话 以下是撤销操作 git status 先看一下add 中的文件 git reset HEAD 如果后面什么都 阅读全文
posted @ 2020-05-23 13:20
cnlovefish
阅读(792)
评论(0)
推荐(0)
摘要:
https方式每次都要输入密码,按照如下设置即可输入一次就不用再手输入密码的困扰而且又享受https带来的极速 设置记住密码(默认15分钟): git config --global credential.helper cache 如果想自己设置时间,可以这样做: git config creden 阅读全文
posted @ 2020-05-23 13:19
cnlovefish
阅读(819)
评论(0)
推荐(0)
摘要:
先显示提交的log,比如显示最近的3次提交 $ git log -3 输出信息如下: commit 4dc08bb8996a6ee02fAuthor: Mark <xxx@xx.com>Date: Wed Sep 7 08:08:53 2016 +0800 xxxxx commit 9cac9ba7 阅读全文
posted @ 2020-05-23 13:11
cnlovefish
阅读(286)
评论(0)
推荐(0)
摘要:
查看本地分支,和当前所在的分支 git branch -vv git checkout developer 切换到developer分支 阅读全文
posted @ 2020-05-23 13:10
cnlovefish
阅读(5978)
评论(0)
推荐(1)
浙公网安备 33010602011771号