上一页 1 2 3 4 5 6 7 8 9 10 ··· 26 下一页
摘要: 小结: 1.该脚本绑定在一个空对象上, 2.需对空对象上的脚本绑定目标对象(模型) 3.将按钮的onclick事件目标绑定为该空对象,并且方法使用空对象中的ChangeColor方法,运行后点击按钮即可改变模型颜色 1. 创建一个按钮:在Unity中,可以通过在Hierarchy面板上右键点击,并选 阅读全文
posted @ 2023-07-12 02:20 SimoonJia 阅读(1690) 评论(0) 推荐(0) 编辑
摘要: ‘ init(); animate(); function init() { var output = document.createElement( 'div' ); output.style.cssText = 'position: absolute; left: 50px; top: 300p 阅读全文
posted @ 2023-06-16 17:47 SimoonJia 阅读(88) 评论(0) 推荐(0) 编辑
摘要: document.addEventListener('mouseup', (e)=>{mouseupFunc(e)}, false); 阅读全文
posted @ 2023-06-15 20:07 SimoonJia 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 设置一下射线的相机就ok了: this._raycaster.camera = this._camera; 阅读全文
posted @ 2023-05-05 10:07 SimoonJia 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1、cmd打开控制台,切换到相关项目地址; 2、查看当前分支及git仓库地址: 1. git remote 2. git remote -v 3、移除当前仓库地址 git remote rm origin 4、移除后可以用git remote -v 命令查看是否移除成功,移除成功后添加目标仓库地址 阅读全文
posted @ 2023-04-25 11:02 SimoonJia 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 官方文档:https://www.canvasapi.cn/ 1. Canvas API Canvas API 提供了一个通过JavaScript 和 HTML的<canvas>元素来绘制图形的方式。它可以用于动画、游戏画面、数据可视化、图片编辑以及实时视频处理等方面。 在html里的形式是: <c 阅读全文
posted @ 2023-02-28 01:43 SimoonJia 阅读(1) 评论(0) 推荐(0) 编辑
摘要: let str = "Hello world"; str.endsWith("world") // 返回 true str.endsWith("World") // 返回 false endsWith() 方法用来判断当前字符串是否是以指定的子字符串结尾的(区分大小写)。 如果传入的子字符串在搜索字 阅读全文
posted @ 2023-02-23 11:21 SimoonJia 阅读(218) 评论(0) 推荐(0) 编辑
摘要: IE9及以下不支持下面这些功能,其它浏览器最新版本均已支持。 1、允许上传文件数量 允许选择多个文件:<input type="file" multiple> 只允许上传一个文件:<input type="file" single> 2、上传指定的文件格式 如指定默认格式为gif、png:<inpu 阅读全文
posted @ 2023-02-23 10:28 SimoonJia 阅读(3629) 评论(0) 推荐(0) 编辑
摘要: 正确的写法可以让你拥有更加灵活多变的样式: <Drawer title={<div><Icontype="arrow-left"style={{ marginRight: "5px" }}/>{editState=="create"?"加油":"前进"}</div>} /> 阅读全文
posted @ 2023-02-21 17:32 SimoonJia 阅读(446) 评论(0) 推荐(0) 编辑
摘要: :focus-within 它表示一个元素获得焦点,或,该元素的后代元素获得焦点。划重点,它或它的后代获得焦点,这也就意味着,它或它的后代获得焦点,都可以触发 :focus-within。 可以用:focus-within写按钮的点击边线效果: 代码: .label:focus-within { o 阅读全文
posted @ 2023-02-21 10:45 SimoonJia 阅读(14) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 26 下一页