博客
这里发布本站的最近动态
CSS 让文本输出 textarea 的格式
   1 分钟阅读
在 textarea 中是有换行等之列的简单格式; 在重现的时候,一般用 p 标签来展示,这个时候如果想要展示可以使用 1 2 3 .like-textarea{ white-space: pre-line; } 这个属性可以合并空白符序列,但是
CSS+js 有序排行
   2 分钟阅读
HTML 代码如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 <!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>无序列表CSS3<
CSS3 渐变文字写法
   1 分钟阅读
一个渐变文字, 色彩还行,作为标题使用的; DEMO 如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .title{ font-size: 68px; font-weight: normal; color: rgb(65, 133, 225); text-transform: uppercase; line-height: 1.2;
CSS3 箭头上升,模拟缓慢增长的写法
   2 分钟阅读
做了类似引导分享的一个箭头; 提醒用户去分享; 如下: 1 2 3 4 5 6 7 8 9 10 11 .share-prompt-wrap .share-prompt-arrow{ width: 0.573rem; -webkit-animation-duration:3s; animation-duration:3s; -webkit-animation-iteration-count:infinite; animation-iteration-count:infinite; -webkit-animation-name:share-prompt-animation; animation-name:share-prompt-animation; -webkit-animation-timing-function:ease-in-out; animation-timing-function:ease-in-out; } 动画部分如下 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Electron 自动热更新
   2 分钟阅读
开发客户端一定要做的就是自动更新模块,否则每次版本升级都是一个头疼的事。 安装 electron-updater 包模块 npm install electron-updater --save 配置 package.json 文件 2.1 为了打包时生成 latest.yml 文件,需要在 build 参数中
Electron 错误解决 Uncaught Error A dynamic link library (DLL) initialization routine failed
   1 分钟阅读
开发 Electron 应用的时候,遇到一个错误; (anonymous) @ G:\CanonChain\canonchain-wallet\node_modules\electron\dist\resources\electron.asar\renderer\init.js:162 G:\CanonChain\canonchain-wallet\node_modules\bindings\bindings.js:88 Uncaught Error: A dynamic link library (DLL) initialization routine failed. \\?\G:\CanonChain\canonchain-wallet\node_modules\argon2\build\Release\argon2.node at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:172:20) at Object.Module._extensions..node (module.js:598:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:172:20) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at bindings (G:\CanonChain\canonchain-wallet\node_modules\bindings\bindings.js:81:44) at Object.<anonymous> (G:\CanonChain\canonchain-wallet\node_modules\argon2\argon2.js:3:37) 问题搜
Element 遮罩层在弹出层的上面
   1 分钟阅读
element ui 弹出组件的遮罩层在弹出层的上面 解决办法是在 el-dialog 这一级加上 :append-to-body=”true” 即可,让他 append 到 body; 如下图 导致原因
EOS 的最高 TPS 作假
   4 分钟阅读
最近看到 BM 说要搞银河系通用货币,TPS 可以打到千万! 感觉这家伙牛逼吹的越来越狠了。 记得以前 EOS 说是要到百万,最终线上 TPS 最高才 3000; 而且这个数据也是
express 不是内部或外部命令
   1 分钟阅读
折腾了 N 久; express 用的是老版本的; 开始是用 npm install -g express-generator来安装用的;但是每次用的时候,出现不是可用的命令行;折腾半天没
express 做跨域请求
   1 分钟阅读
无论什么语言下,做跨域的核心就是 "Access-Control-Allow-Origin" 设置为"*" 在Express下是这么干的 1 2 3 4 5 6 7 8 9 var app = express(); app.all('/api', function(req, res, next) { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Headers", "X-Requested-With"); res.header("Access-Control-Allow-Methods","PUT,POST,GET,DELETE,OPTIONS");