会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Better-HTQ
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
···
18
下一页
2021年10月20日
大O表示法
摘要: 定义 大O表示法是一种特殊的表示法,指出了算法的速度有多快。 并不以秒为单位,而是指算法运行时间随操作数的增速(随着输入的增加,其运行时间将以什么样的速度增加)。 指出了最糟情况下的运行时间。 O(log n)比O(n)快,当需要搜索的元素越多时,前者比后者快得越多。 O(n × 1/2 × n)。
阅读全文
posted @ 2021-10-20 10:39 Better-HTQ
阅读(706)
评论(0)
推荐(0)
2021年10月19日
二分查找
摘要: 定义 二分查找也称折半查找(Binary Search),它是一种效率较高的查找方法。但是,折半查找要求线性表必须采用顺序存储结构,而且表中元素按关键字有序排列。 运行时间 O(log n) 输入 有序列表,列表项 输出 对应列表项的下标 代码 // JavaScript版本 function bi
阅读全文
posted @ 2021-10-19 10:43 Better-HTQ
阅读(33)
评论(0)
推荐(0)
2021年10月14日
Canvas 全局不透明度和全局图像重叠设置
摘要: 全局不透明度 globalAlpha globalAlpha = 1 (Default) var canvas = document.getElementById('canvas') canvas.width = 1200; canvas.height = 800; var context = ca
阅读全文
posted @ 2021-10-14 14:36 Better-HTQ
阅读(691)
评论(0)
推荐(0)
Canvas阴影的绘制
摘要: 接口 context.shadowColor // 颜色 context.shadowOffsetX // X 位移 context.shadowOffsetY // Y 位移 context.shadowBlur // 模糊程度 示例 代码 var canvas = document.getEle
阅读全文
posted @ 2021-10-14 10:00 Better-HTQ
阅读(288)
评论(0)
推荐(0)
2021年10月13日
Canvas文字的渲染--进阶
摘要: font: 字型、字号和字体 Default: "20px sans-serif" context.font = “ font-style font-variant font-weight font-size font-family ” font-style: normal (Default
阅读全文
posted @ 2021-10-13 15:07 Better-HTQ
阅读(378)
评论(0)
推荐(0)
Canvas文字的渲染--基础
摘要: 基础使用 context.font = "bold 40px Arial" context.fillStyle = "#058" context.fillText( string, x, y, [maxlen] ) // 实心文字 context.strokeText( string, x, y [
阅读全文
posted @ 2021-10-13 09:59 Better-HTQ
阅读(143)
评论(0)
推荐(0)
2021年10月12日
Canvas曲线绘制
摘要: 圆弧 arc() arc( centerx, centery, radius, startingAngle, endingAngle, anticlockwise = false ) 弧 arcTo() arcTo( x1, y1, x2, y2, radius ); 二次贝
阅读全文
posted @ 2021-10-12 14:25 Better-HTQ
阅读(58)
评论(0)
推荐(0)
2021年10月9日
window.onload 和 $(document).ready 的区别
摘要: 区别一:提供者 window.onload 事件是一个JavaScript内置的事件 $(document).ready 事件是 jQuery 提供的一个事件 区别二:执行顺序 window.onload 事件会等所有内容(包括图片等)加载完成后才会被触发,因此它比 $(document).read
阅读全文
posted @ 2021-10-09 09:33 Better-HTQ
阅读(143)
评论(0)
推荐(0)
2021年9月29日
个人装机软件列表
摘要: 浏览器 Chrome Firefox 编程 VS Code 快应用IDE Git Bash Postman ApiPost PxCook 文档 XMind Typora Notion 即时聊天 钉钉 微信 远程协助 向日葵 存储 百度云网盘 阅读 Kindle 京东阅读
阅读全文
posted @ 2021-09-29 15:58 Better-HTQ
阅读(67)
评论(0)
推荐(0)
2021年9月16日
package-lock.json 或 yarn.lock 的重要性。
摘要: 作者:wuwhs 原文:https://segmentfault.com/a/1190000039684460 前言 看完本文,你将从整体了解依赖版本锁定原理,package-lock.json 或 yarn.lock 的重要性。首先要从最近接连出现两起有关 npm 安装 package.json
阅读全文
posted @ 2021-09-16 09:50 Better-HTQ
阅读(201)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
14
15
···
18
下一页
公告