上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页
摘要: 首先想到的是str.contains(),用的时候发现报错了 正确的判断方法应该用:str.indexof(substring),不包含的话,返回-1。大小写敏感 阅读全文
posted @ 2018-01-06 22:09 蛋尼 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 官方文档:http://element-cn.eleme.io/#/zh-CN/component/message 简单的用法,一句代码搞定。类型有success/warning/info/error 阅读全文
posted @ 2018-01-06 21:52 蛋尼 阅读(507) 评论(0) 推荐(0) 编辑
摘要: mysql传到前端的默认时间:2018-01-06T17:32:23+08:00 格式化的js代码 阅读全文
posted @ 2018-01-06 17:57 蛋尼 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 查看bee generate appcode自动生成的代码,会发现orm操作都是以主键为依据的。 如果我不想根据主键怎么操作?用 ORM.Raw(cmd).Exec()吧,cmd=[你的mysql语句] 阅读全文
posted @ 2018-01-06 16:26 蛋尼 阅读(876) 评论(0) 推荐(0) 编辑
摘要: `${action}`可以捕获用户选择cancel还是confirm,然后进行相应操作 官方文档:http://element-cn.eleme.io/#/zh-CN/component/message-box 阅读全文
posted @ 2018-01-04 21:00 蛋尼 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 模块化之后,想用js全局变量,遇到点困难。搜索资料后搞定,大概2个步骤: 1、定义一个vue模块,const定义变量,并用export对外暴露. Globle.vue 2、在用到全局变量的模块,import后再使用 test.vue 2018/12/27 定义component.js并在main.j 阅读全文
posted @ 2018-01-04 17:40 蛋尼 阅读(2111) 评论(0) 推荐(0) 编辑
摘要: 组件的连接:http://element-cn.eleme.io/#/zh-CN/component/upload 需求:点x按钮,获取文件名传到后端服务,把文件从服务器删除 分析: 仔细看文档,会发现默认传有两个参数file,fileList,都是object类型;file.name就可以拿到当前 阅读全文
posted @ 2018-01-04 16:11 蛋尼 阅读(16190) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/zheng-chuang/p/6193090.html 阅读全文
posted @ 2018-01-04 13:31 蛋尼 阅读(323) 评论(0) 推荐(0) 编辑
摘要: go run的时候报:unrecognized import path "golang.org/x/net/html" 应该是被墙掉了,自己去github上下载包即可 然后把net中的文件,copy到 %gopath%/src/golang.org/x/net目录 阅读全文
posted @ 2017-12-28 11:47 蛋尼 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 1、假如之前没设置密码,现在想成test mysqladmin -u root password test 2、假如之前密码是1234,现在想改成test mysqladmin -u root -p1234 password test 注:-p后面如果带空格,会提示让输入密码,输入1234后,就修改 阅读全文
posted @ 2017-12-27 18:29 蛋尼 阅读(158) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页