mysql 添加索引 mysql 创建索引
摘要:1.添加PRIMARY KEY(主键索引) mysql>ALTER TABLE `table_name` ADD PRIMARY KEY ( `column` ) 2.添加UNIQUE(唯一索引) mysql>ALTER TABLE `table_name` ADD UNIQUE ( `column
阅读全文
posted @
2016-12-28 11:43
minwei
阅读(1496)
推荐(0)
jasmine test 页面测试工具
摘要:1. chrome 开本地访问网络命令行 : open /Applications/Google\ Chrome.app/ --args --disable-web-security (版本在49以上,还须添加--user-data-dir) 2. 还需要添加跨域 3. 测试本地需要修改html 里
阅读全文
posted @
2016-12-28 11:25
minwei
阅读(310)
推荐(0)
获取地址栏参数
摘要:function GetQueryString(name) { var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r!=null)return unescape(r[2]); return nul...
阅读全文
posted @
2016-12-28 11:19
minwei
阅读(153)
推荐(0)
github指令
摘要:一般用法 git stash git pull git stash pop 结局冲突 git add . git commit -m "message" git push 查看 git stash list 删除 git stash drop git help [命令] 命令帮助git status
阅读全文
posted @
2016-12-26 17:59
minwei
阅读(148)
推荐(0)
sql 小操作
摘要:1.COALESCE(oe.promotion_value, 0) 设置默认值 2.group_concat(pspk.name) 合并字段
阅读全文
posted @
2016-12-26 17:49
minwei
阅读(124)
推荐(0)
Vue基本应用
摘要:1. returnDetail.$mount('#returnDetail'); 不用el 直接可以绑定数据到页面的id上 作用区域不能交叠多个vue 实体 否则后面的vue 实体会失效。 2. vue created 运行在读取data 之后, 绑定到数据之前, 如果不想显示 {{}} 就可以在页
阅读全文
posted @
2016-12-26 17:18
minwei
阅读(356)
推荐(0)