摘要: 前端部署步骤 现在是本地的部署步骤,本地部署是为了测试下包部署的资源引用是否正确。 1.首先执行npm run build ,build出的包是dist文件夹: 2.然后我把包传入了公司内网,哈哈,我是外网开发,内网部署。 在D:\code\IEDS-inner\dist目录下执行命令: jar - 阅读全文
posted @ 2018-03-28 14:04 耗子hhq 阅读(6450) 评论(1) 推荐(1) 编辑
摘要: .newline-text{ white-space:pre-wrap; } 阅读全文
posted @ 2017-02-22 14:56 耗子hhq 阅读(185) 评论(0) 推荐(0) 编辑
摘要: session: 数据放在服务器上 访问增多,会比较占用服务器的性能,考虑到性能,应该用cookie cookie: 数据存放在客户的浏览器上 小,只有4k 若不设置过期时间,则表示这个cookie的生命期为浏览器会话期间,关闭浏览器窗口,cookie就消失。这种生命期为浏览器会话期的cookie被 阅读全文
posted @ 2017-02-22 14:15 耗子hhq 阅读(108) 评论(0) 推荐(0) 编辑
摘要: WebStorage包括sessionStorage和localStorage,完全存在客户端。 说明:sessionStorage都可以用localStorage代替。 参考资料:Gump Yan 阅读全文
posted @ 2017-02-22 13:53 耗子hhq 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 当请求一个页面index.html, 会依次下载以下文件: index.html b.js c.css 再次刷新页面也会更新这些文件(当文件内容并无实际更新是也会发起http请求, http返回304, 但也会发起http请求) 添加cache文件index.manifest: index.mani 阅读全文
posted @ 2017-02-21 15:37 耗子hhq 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 盒模型:从外到内——margin、border、padding、内容区 box-sizing:border-box; //设置的height\width包括padding和border,即元素内容区+padding+border=width box-sizing:content-box; //设置的 阅读全文
posted @ 2017-02-21 11:21 耗子hhq 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 例:https://www.baidu.com/news/daily?id=976879846&fr=daohang#name 1、协议部分,如Http、https、ftp,"//"为分隔符; 2、域名部分,www.baidu.com; 3、端口部分,省略则使用默认端口,http--80,https 阅读全文
posted @ 2016-11-30 15:03 耗子hhq 阅读(133) 评论(0) 推荐(0) 编辑
摘要: new DateTime(DateTime.UtcNow.Ticks, DateTimeKind.Utc).ToString(CultureInfo.InvariantCulture) new DateTime(DateTime.UtcNow.Ticks, DateTimeKind.Utc).ToS 阅读全文
posted @ 2016-03-25 10:20 耗子hhq 阅读(235) 评论(0) 推荐(0) 编辑
摘要: $("#myprofile_index_user_name").word_limit(30); 超过限制数目会将后面的字符数省略为“...” 阅读全文
posted @ 2016-03-22 17:20 耗子hhq 阅读(120) 评论(0) 推荐(0) 编辑
摘要: https://www.campaignmonitor.com/css/margin只对div有效,对span设置了display:inline-block无效 阅读全文
posted @ 2015-03-30 15:26 耗子hhq 阅读(171) 评论(0) 推荐(0) 编辑