速记
git log –pretty=format:"%an %s" –author=‘zhangsan’ –since=“2023-11-24”
input和datalist结合使用不提示!
<input type="text" class="form-control" id="art_category" list="catelist" value="{{.article.Category}}" placeholder="分类">
<datalist name="catelist">
<option value="">选择</option>
{{range $index, $item := .categories}}
<option value="{{$item.Name}}">
{{end}}
</datalist>
原因:list="catelist"
对应的应该是id="catelist"
,上面代码使用的是name="catelist"
,是错误的写法
2021-08-18
Unexpected identifier in D:\workspace\yuedun_ts\build\views\article\index.html while compiling ejs If the above error is not helpful, you may want to try EJS-Lint: https://github.com/RyanZim/EJS-Lint Or, if you meant to create an async function, pass async: true
as an option. <% include header.html %>改为<%- include(‘header.html’)%>
2020-05-29 15:39:32
edge chrome下载地址:https://www.microsoftedgeinsider.com/en-us/download
2019-10-12 10:04:22
火狐浏览器新建标签总是在当前打开标签之后,而不是在最后一个标签后新建。 1.about:config 2.browser.tabs.insertAfterCurrent设为false 2018-10-19 11:00:52
node request发送json数据 Request.post(JavaServices.smsService.host + JavaServices.smsService.token, { json: true, body: smsData }, function (err: any, httpResponse: any, body: any) { if (err) { console.log(err); } console.log("»»msg:", body); });
2018-08-23 19:16:19
[Error: spawn ENOENT] https://stackoverflow.com/questions/17516772/using-nodejss-spawn-causes-unknown-option-and-error-spawn-enoent-err
2018-08-09 14:09:37
新阿里云服务器一些基本设置: 修改terminal——apt-get update更新软件源,安装zsh,设置默认terminal为zsh,chsh -s /usr/bin/zsh
。非root用户需要在root权限下修改/etc/passwd
文件才能实现。
2018-06-04 18:54:56
火狐翻译插件:Mate Translate chrome翻译插件:划词翻译
2018-04-09 10:29:59
mongodb客户端:https://studio3t.com/ 、Robo 3T
2018-02-09 15:20:16
ubuntu17.10输入法退出后重启方法:命令行执行fcitx -r
2017-11-21 14:21:08
firefox火狐浏览器搜索框新标签中打开页面 地址栏输入:about:config 搜索:browser.search.openintab,值改为true即可
2017-10-12 11:30:55
datatable dom设置https://datatables.net/reference/option/dom 设置datatable的搜索框,分页等
2017-09-09 18:19:47
命令行直接执行godoc -http=:8080可在浏览器中打开本地web服务
2017-09-07 18:04:34
linux添加alias并且永久生效:~/.bashrc中添加alias,例如:alias ll=‘ls -alF’
2017-07-18 10:23:33
MySQL出现了某一条数据无法做任务操作的现象,不能修改,不能删除,只要操作就会卡死,出现原因是程序中调用其他接口,而接口中也会操作这张表的这条数据,造成锁表锁行
2017-07-05 10:20:22
typescript tsconfig.json配置选项http://www.w3cschool.cn/typescript/typescript-compiler-options.html
2017-04-20 22:14:44
datatable分页无效,有分页tab但数据全部显示,没有错误提示。原因是使用了’serverSide’: true,实际上后端没有分页,如果不需要后端分页应该去掉
2017-03-15 15:46:32
mysql多表关联修改: UPDATE table AS t1 INNER JOIN table2 AS t2 ON t1.id = t2.t_id SET t1.name=‘张三’ WHERE t1.name= ‘张三’
2017-03-13 14:57:00
受种种因素影响,远程连接桌面的速度通常会比较慢。AnyDesk中文版的开发者试图解决这个问题,它使用了DeskRT技术,内含新的视频解码器,并且提供了最简化的登录和控制方式,使你能在现有的PC上体验到更流畅的远程桌面。 AnyDesk中文版主要特点: 专门为现代处理器优化,支持多处理器 特别优化的视频压缩算法 低资源和带宽占用率 与操作系统深度整合
2016-12-28 13:24:32
Git for windows 中文乱码解决方案 $ git config –global core.quotepath false # 显示 status 编码 $ git config –global gui.encoding utf-8 # 图形界面编码 $ git config –global i18n.commit.encoding utf-8 # 提交信息编码 $ git config –global i18n.logoutputencoding utf-8 # 输出 log 编码 $ export LESSCHARSET=utf-8
2016-12-20 13:36:19
git bash设置快捷命令: 编辑\Git\etc\profile.d\aliases.sh文件,比如快速切换目录:alias cdp=‘cd e: && cd WorkSpace/zmplatform/’,
2016-12-15 15:49:43
typescript2.0以后推荐使用npm安装定义文件 http://stackoverflow.com/questions/40097488/saving-npm-types-typings-with-save-or-save-dev https://blogs.msdn.microsoft.com/typescript/2016/06/15/the-future-of-declaration-files/
2016-12-01 14:36:25
查询typescript包http://microsoft.github.io/TypeSearch/,也可以直接在https://www.npmjs.com里查询,只是提供了一个快捷方式
2016-10-28 13:35:33
typescript2.0可以直接使用npm安装definitions,npm install –save @types/lodash,只需要在包前面加@types即可。在2.0之前需要使用typings或tsd来安装
2016-10-28 11:28:32
chrome浏览器书签搜索——添加网页,网址为chrome://bookmarks/#1即可
2016-10-26 16:00:07