上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 29 下一页
2021年12月7日
摘要: 十进制转换为十六进制 (15).toString(16) //f 全局常量 console.log(process.pid) __filename :当前文件名 __dirname:当前目录名 console.log(__filename.slice(__dirname.length + 1)); 阅读全文
posted @ 2021-12-07 11:49 boye169 阅读(684) 评论(0) 推荐(0) 编辑
摘要: 数组常用方法 1.concat():连接两个或更多的数组,并返回结果。 var alpha = ["a", "b", "c"]; var numeric = [1, 2, 3]; alpha.concat(numeric); // a,b,c,1,2,3 2.every():检测数值元素的每个元素是 阅读全文
posted @ 2021-12-07 11:44 boye169 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 数组 字符串相互转换 JSON.stringify(data) //转换为字符串 JSON.parse(data) //转换为json 字符与ASCII相互转换 数字0到9的ASCII值 48-57大写字母A到Z的ASCII值 65-90小写字母a到z的ASCII值 97-122 let aStri 阅读全文
posted @ 2021-12-07 11:40 boye169 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 忽略检查 // @ts-ignore 单行忽略// @ts-nocheck 忽略全文 函数 //书写完整函数类型 let myAdd: (x: number, y: number) => number = function(x: number, y: number): number { return 阅读全文
posted @ 2021-12-07 11:38 boye169 阅读(137) 评论(0) 推荐(0) 编辑
2021年11月17日
摘要: 【Message.tsx】import Snackbar from '@material-ui/core/Snackbar'; import Alert from '@material-ui/lab/Alert'; import React from 'react'; export const Sh 阅读全文
posted @ 2021-11-17 15:47 boye169 阅读(289) 评论(0) 推荐(0) 编辑
2021年10月26日
摘要: 安装moviepy模块 pip install moviepy movie_to_mp3.py #!/usr/bin/env python #-*- coding:utf-8 -*- # 提取视频中的音频 # pip install moviepy from moviepy.editor impor 阅读全文
posted @ 2021-10-26 18:00 boye169 阅读(363) 评论(0) 推荐(0) 编辑
2021年10月15日
摘要: 克隆代码 git clone git@gitee.com/aa/test.git #克隆主分支 git clone -b boye-dev git@gitee.com/aa/test.git boye-dev #克隆boye-dev分支 创建并切换到新分支 git clone git@gitee.c 阅读全文
posted @ 2021-10-15 10:11 boye169 阅读(175) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>JS实现复制功能的方法 </title> </head> <script type="text/javascript"> function copyText(){ var te 阅读全文
posted @ 2021-10-15 09:52 boye169 阅读(409) 评论(0) 推荐(0) 编辑
2021年9月26日
摘要: <html> <textarea name="" id="text" cols="40" rows="10"> 第一行:这里输入的数据将保存为txt中 第二行:保存为文件 </textarea> <button id="save" type="button">保存</button> <script> 阅读全文
posted @ 2021-09-26 18:40 boye169 阅读(839) 评论(0) 推荐(0) 编辑
2021年9月11日
摘要: 使用dangerouslySetInnerHTML const element = (<div dangerouslySetInnerHTML={{__html:"<h1>hello,this is react</h1>"}} />); ReactDOM.render( element, docum 阅读全文
posted @ 2021-09-11 19:21 boye169 阅读(1409) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 29 下一页