上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 32 下一页
2021年12月13日
摘要: demjson模块 此模块提供用于编码或解码数据的类和函数。这个实现试图尽可能符合JSON规范(RFC 4627),同时仍然提供许多可选的扩展,以允许限制较少的JavaScript语法。它包括完整的Unicode支持,包括UTF-32、BOM和代理项对处理。它还可以支持JavaScript的NaN和 阅读全文
posted @ 2021-12-13 09:44 boye169 阅读(324) 评论(0) 推荐(0)
2021年12月10日
摘要: 1. 登录mysql mysql -uroot -p (输入密码) 2. 设置允许远程访问 GRANT ALL PRIVILEGES ON *.* TO '账号'@'%' IDENTIFIED BY '密码' WITH GRANT OPTION; 如:GRANT ALL PRIVILEGES ON 阅读全文
posted @ 2021-12-10 10:50 boye169 阅读(154) 评论(0) 推荐(0)
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 阅读(862) 评论(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 阅读(456) 评论(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 阅读(635) 评论(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 阅读(171) 评论(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 阅读(304) 评论(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 阅读(400) 评论(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 阅读(197) 评论(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 阅读(430) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 32 下一页