06 2017 档案
命令行提交review
摘要:分别运行一下三条命令 npm install -g grunt-cli npm install -g grunt grunt svndiffjshint 阅读全文
posted @ 2017-06-26 09:41 王雪皓 阅读(272) 评论(0) 推荐(0)
按键-长按只触发一次次
摘要:PS:没有做抖动的处理 . 阅读全文
posted @ 2017-06-24 17:17 王雪皓 阅读(669) 评论(0) 推荐(0)
51串口通信
摘要:/* *单片机接收主机的数据,然后将数据传送到P2口, *当按下K1=P1.4 时, 单片机发送字符串 给主机 */ #include <reg51.h> #include <intrins.h> unsigned char key_s, key_v, tmp; char code str1[] = 阅读全文
posted @ 2017-06-24 15:49 王雪皓 阅读(329) 评论(0) 推荐(0)
juicer使用备忘
摘要:each时获取索引:${index} 阅读全文
posted @ 2017-06-21 16:02 王雪皓 阅读(265) 评论(0) 推荐(0)
51单片机音乐盒程序
摘要:#include<reg52.h>#define uchar unsigned char#define uint unsigned int#define ulong unsigned long code unsigned char gao[]={ 0xF2,0xF3,0xF5,0xF5,0xF6,0 阅读全文
posted @ 2017-06-15 17:49 王雪皓 阅读(9064) 评论(3) 推荐(2)
最精简24L01程序--发送
摘要:#include <reg52.h>#include <intrins.h> typedef unsigned char uchar;typedef unsigned char uint;//****************************************NRF24L01端口定义** 阅读全文
posted @ 2017-06-15 17:46 王雪皓 阅读(407) 评论(0) 推荐(0)
最精简24L01程序--接收
摘要:#include <reg52.h>#include <intrins.h> typedef unsigned char uchar;typedef unsigned char uint;//****************************************NRF24L01端口定义** 阅读全文
posted @ 2017-06-15 17:46 王雪皓 阅读(546) 评论(0) 推荐(0)
正则-一道正则练习及总结
摘要:要求:匹配每对中括号之间的${}里面的内容。 例如[idkey=${param1}] and [CNNAME<>${param2}] or [column3>${param3}] ,需要匹配出param1、param2和param3。 答案: 总结: 1.转义字符: 正则表达式中要匹配的字符本身,很 阅读全文
posted @ 2017-06-14 17:07 王雪皓 阅读(202) 评论(0) 推荐(0)
接口报错mixed content blocked
摘要:原因:https不能调用http接口。 阅读全文
posted @ 2017-06-12 15:00 王雪皓 阅读(719) 评论(0) 推荐(0)
重拾单片机
摘要:定义变量,在函数一开始,否则会报错。 阅读全文
posted @ 2017-06-11 21:12 王雪皓 阅读(119) 评论(0) 推荐(0)
部署ajax服务-支持jsonp
摘要:server端代码 阅读全文
posted @ 2017-06-06 16:10 王雪皓 阅读(412) 评论(0) 推荐(0)
linkageSystem--串口通信、socket.io
摘要:实现功能:页面切换选中的led,通过websocket告知后台,后台通过serialport发送消息给串口。反之,串口发消息给后台,后台再把消息传递给页面,页面切换选中的led。 安装模块:npm install serialport --save npm install socket.io --s 阅读全文
posted @ 2017-06-05 16:29 王雪皓 阅读(319) 评论(0) 推荐(0)
node安装问题
摘要:1.最好安装到默认路径,手贱安到了D盘,升级npm各种出错。 明明升级成功,查看版本时,确显示依然是老的版本。 原因:升级的是C盘的node_modules中的npm,执行时确是D盘node自带的npm,不知道为啥。。。 重新安装node到默认路径就没问题了o(╯□╰)o PS:升级npm命令 np 阅读全文
posted @ 2017-06-02 15:54 王雪皓 阅读(154) 评论(0) 推荐(0)
jshint之对!的检验
摘要:JSHint complains about the use of !. Surrounding it with brackets does not help !后面不能跟括号 阅读全文
posted @ 2017-06-01 11:28 王雪皓 阅读(101) 评论(0) 推荐(0)