摘要: 1.下载powerDesigner 链接地址为http://soft.onlinedown.net/soft/577763.htm 2.打开软件,file -> new project,新建一个工程;然后新建 entity,用来建表; 3.直接右击entity -> new,会出现对应的弹出框,如图 阅读全文
posted @ 2019-04-29 17:41 sunflower-zy 阅读(2135) 评论(0) 推荐(0) 编辑
摘要: 在用node编写定时任务时候,发现for循环只执行i=0这一次,就不接着循环执行了,下面贴上代码: exports.task = async function(ctx){ let { app } = ctx, resultArr1 = [],//查询的数据库数据 resultArr2 = [];// 阅读全文
posted @ 2019-04-16 16:35 sunflower-zy 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 最近使用egg.js写了一个小项目练手,主要用来封装接口以及代理接口。进入正题: egg搭建以及各项配置 可以详见官方文档:https://eggjs.org,这里简单描述一下: 1.直接使用脚手架快速搭建项目,命令如下: (1)npm i egg-init -g; (2)新建egg-demo文件夹 阅读全文
posted @ 2019-01-09 16:27 sunflower-zy 阅读(7675) 评论(3) 推荐(0) 编辑
摘要: 一.属性规范 1.属性书写顺序 (1)位置属性(position, top, right, z-index, display, float等); (2)大小(width, height, padding, margin); (3)文字系列(font, line-height, letter-spac 阅读全文
posted @ 2018-10-19 09:17 sunflower-zy 阅读(1252) 评论(0) 推荐(0) 编辑
摘要: 子元素设置absolue,不设置top以及left值会有什么影响呢? 代码如下: .parent { width: 500px; height: 500px; overflow: hidden; } .children { width: 200px; height: 200px; position: 阅读全文
posted @ 2018-08-09 14:24 sunflower-zy 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 子元素设置absolue,不设置top以及left值会有什么影响呢? 代码如下: .parent { width: 500px; height: 500px; overflow: hidden; } .children { width: 200px; height: 200px; position: 阅读全文
posted @ 2018-08-09 14:19 sunflower-zy 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 对象赋值: 1.var objOld = {a:1,b:2}, objNew = objOld; objOld.a = 5; 此时输出:objOld = {a:5,b:2}; objNew = {a:5,b:2}; 说明修改objNew 的值会影响objOld 的值 2.var objOld = { 阅读全文
posted @ 2018-03-27 16:50 sunflower-zy 阅读(177) 评论(0) 推荐(0) 编辑
摘要: //websocket推送 wsFn() { let that = this, baseInfo = that.$store.state.baseInfo, url = "";//websocket的url if("WebSocket" in window) { let ws = new WebSo 阅读全文
posted @ 2018-03-09 14:39 sunflower-zy 阅读(132) 评论(0) 推荐(0) 编辑
摘要: slice: 定义一个数组:let b = ['a','b','c','d','e'] b:["a", "b", "c", "d", "e"] b.slice(3,4) :["d"] 截取[3,4)的数组,但是b的值不变 此时b的值为: b:["a", "b", "c", "d", "e"] spl 阅读全文
posted @ 2018-03-01 14:32 sunflower-zy 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 使用vue时,在已经安装模块完毕的情况下,依旧会报错,如: Module build failed: Error: %1 is not a valid Win32 application. 这个时候只需要重新安装node-sass,命令如下: cnpm install node-sass --sav 阅读全文
posted @ 2018-03-01 14:24 sunflower-zy 阅读(224) 评论(0) 推荐(0) 编辑