- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 js 冒泡排序
//冒泡排序 var arr = [5, 4, 3, 2, 1];//定义一个数组 for (var i = 0; i < arr.length - 1; i++) {//外层循环次数 for (var j = 0; j < arr.length - i - 1; j++) {//内层循环次数 if (arr[j] > arr[j + 1]) { var temp = arr[j];
2022-04-08 16:43:38
88
原创 css 单行文本溢出显示省略号
css单行文本溢出显示省略号 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
2022-04-01 19:10:13
250
原创 css清除浮动
清除浮动 .clearfix:after { content : “”;display: block;height: 0; clear : both; visibility: hidden; } .clearfix {lIE6、7专有*/ zoom: 1; }
2022-03-25 00:30:44
307
原创 道客巴巴文档下载
function downloadPages(from, to) { for (i = from; i <= to; i++) { const pageCanvas = document.getElementById(‘page_’ + i); if (pageCanvas === null) { break; } const pageNo = parseInt(String(i)); setTimeout(() => { console.log(“pageNo>>”, pageNo
2021-12-28 10:56:10
746
原创 2020-03-25
单片机外部中断 p3.2 p3.3端口 **外接两个按钮开关,p1接八个led灯,点击p3.2开关led 1357灯亮 点击p3.3 2468 led 灯亮 #include <reg51.h> void main() { EA=1;//总中断允许 EX0=1;//外部中断0允许标志 EX1=1;//外部中断1允许标志 IT0=1;//下降沿触发 IT1=1;//下降沿触发 ...
2020-03-25 14:15:46
134
原创 2020-03-23
单片机之流水灯 #include <reg51.h> #include<intrins.h> // _crol_头文件 unsigned int x,y,z,j,i,k; void delay(unsigned int x){ for(i=x;i>0;i–){ for(j=125;j>0;j–); }; //延时程序 } void main(){ P1...
2020-03-23 15:34:53
91
原创 2020-03-22
开启单片机学习历程 单灯闪烁 #include <reg51.h> #define uint unsigned int #define uchar unsigned char sbit d1=P1^0; void delay(uint a) { uint j; uchar k; for(j=a;j>0;j–) for(k=125;k>0;k–); //延时 } void...
2020-03-22 18:19:22
114
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅