摘要: yield return promoise next参数 next方法可以带一个参数,该参数就会被当作上一个yield表达式的返回值 next 01_callbackhell let sayhello = function (name, callback) { setTimeout(function 阅读全文
posted @ 2024-03-21 17:46 码农-编程小子 阅读(1) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2023-09-04 00:17 码农-编程小子 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 环境ubuntu: 16.04windows: windows 10 目标让windows可以使用Remote Desktop 客记端远程到ubuntu 16.04 安装事宜windowns无需安装ubuntu16.04需要安装xrdp和xfce4 安装 sudo apt install xrdp 阅读全文
posted @ 2023-08-24 23:15 码农-编程小子 阅读(35) 评论(0) 推荐(0) 编辑
摘要: tail -f /var/log/xrdp-sesman.logtail -f /var/log/xrdp.logsudo apt install xfce4sudo echo xfce4-session > ~/.xsessionsystemctl restart xrdpxrdp 0.9.17 阅读全文
posted @ 2023-08-19 23:16 码农-编程小子 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 下位三角例子 https://www.zhuji66.com/how-to-connect-ubuntu-use-rdp-on-windows/ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="vi 阅读全文
posted @ 2023-07-25 22:34 码农-编程小子 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 水平垂直居中方法 有两种常用办法: 绝对定位+margin边距(传统方法) 绝对定位+translate位移 flex布局 绝对定位方法 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewpo 阅读全文
posted @ 2023-07-25 21:17 码农-编程小子 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 使用过度属性transition制作进度条 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale= 阅读全文
posted @ 2023-07-25 00:36 码农-编程小子 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 属性选择器input[type]input[type=text]div[class^=icon]div[class$=icon] 结构伪类选择器nth-child(even)=nth-child(2n+0)偶数nth-child(odd)=nth-child(2n+1)奇数nth-child 和 n 阅读全文
posted @ 2023-07-23 11:45 码农-编程小子 阅读(2) 评论(0) 推荐(0) 编辑
摘要: HTML5新特性 新增了header,nav,article,section,footer等语义标签 新增了input表单类型mail, url, date, time ,month,week,nubmer,tel,search,color 新增表单属性require(必填属性)placeholde 阅读全文
posted @ 2023-07-22 23:26 码农-编程小子 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 插件 Auto Rename Tag Live Server 快捷键 shift+alt+键头向下, 快速复制一行 ctrl+d, 选定多个相同的关键词 ctrl+alt+键头向上/下, 添加多个光标 shift+alt+拖动鼠标, 选择某个区域 阅读全文
posted @ 2023-07-22 21:59 码农-编程小子 阅读(7) 评论(0) 推荐(0) 编辑