# unity-2d 动画 # 1. 切割原画 通过组件 editor 打开编辑界面 通过切割将整张图切割成我们需要的大小,并导入到 assets 文件夹 # 2. 创建动画 创建动画文件 挑选适合的图片 将挑选好的图片拖入动画中 并设置适合的帧率,至此动画初步完成 不同的行为控制不同的动画 例如这里 通过双向行为控制角色是否在移动来添加不同的动画 同时在对象身上添加判定条件 此时...

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. # Quick Start # Create a new post 1$ hexo new "My New Post" More info: Writing # Run...

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. # Quick Start # Create a new post 1$ hexo new "My New Post" More info: Writing # Run...

# 冗余和异常(Redundancy and Anomalies) # 1. 冗余的定义与问题 冗余指的是在数据库中存储重复的数据,这些数据会占用额外的存储空间并可能引发一致性问题。 冗余的影响:当同样的数据在多个地方存储时,如果在一个地方更新数据却忘记在其他地方同步更新,可能导致数据不一致。 # 2. 异常的类型 冗余数据通常会引发三种主要的数据库操作异常: 更新异常(Update...

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. # Quick Start # Create a new post 1$ hexo new "My New Post" More info: Writing # Run...

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. # Quick Start # Create a new post 1$ hexo new "My New Post" More info: Writing # Run...

js 中 getBoundingClientRect () 的使用解析 # getBoundingClientRect () 方法返回元素的大小及其相对于视口的位置。 语法 rectObject = object.getBoundingClientRect(); 值 RectObject:top// 元素上边到视图上边 RectObject:left// 元素左边到视图左边 RectObject:right// 元素右边到视图左边 RectObject:bottom// 元素下边到视图上边 RectObject:width// 元素自身的宽度 RectObject:height//...

js 代理机制 # 前言 proxy 也就是代理,可以帮我们完成很多的事情,例如对数据的处理,对构造函数的处理,对数据的验证,说白了,就是在我们的访问加了一层拦截,卡哇伊过滤很多的操作,,而这些过滤有自己来决定。 想要了解更多,请观看官网文档 1let p = new Proxy(target, handler); # 参数 target 需要被 proxy 包裹的目标对象(该目标对象可以是任意类型,可以实原生数组,函数,甚至是另外一个代理) handler...

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. # Quick Start # Create a new post 1$ hexo new "My New Post" More info: Writing # Run...

# react 如何使用懒加载? # 什么是懒加载? 当服务器返回的数据量过大的时候,缓存则不大适合了,因为系统内存有限。所以我们就要使用懒加载技术,对所需的资源进行按需引入。 # 1、React.lazy 注意:React.lazy 和 Suspense 技术还不支持服务器渲染,如果要实现按需引入,react 官网推荐使用 Loadable Comonents 这个库。 使用前: 1import OtherComponent from './OtherComponent' 使用后 1const...