0%

css transition

ease与ease-in-out的区别

两者的整体效果都是缓入缓出,只是细节上存在差异

贝塞尔曲线
ease cubic-bezier(0.25, 0.1, 0.25,1)
ease-in-out cubic-bezier(0.42, 0, 0.58, 1)

比较两者的贝塞尔曲线,ease缓入效果较其缓出效果不明显;ease-in-out缓入缓出效果都比价明显

step-start 和step-end

step-start 等同于 steps(1, start), 过渡效果分一步完成,在步的起始开始,即直接过渡到效果

step-end 等同于 steps(1, end), 过渡效果分一步完成,在步的结束开始,即transition-duration之后完成过渡效果

steps()

语法:steps(< integer >[, [ start | end ] ]?)

过渡步数为整数,第二个参数默认值为 end

start:表示过渡从第一步时间的开始开始(会直接看到过渡效果)

end:表示过渡从第一步时间的结束开始(不会直接看到过渡效果)

注意: transition-delay 将包含于步进函数的第一步,即第一步的持续时间为均分时间加上延迟时间

先登录mysql

mysql -u root -p

使用 SET PASSWORD命令设置密码

set password for 用户名@localhost = password('新密码');

例如设置root账户密码为root

set password for root@localhost = password('root');

退出登录后用新密码登录测试是否设置成功

来看看json之父怎么说

Comments in JSON
I removed comments from JSON because I saw people were using them to holdparsing directives, a practice which would have destroyed interoperability. I knowthat the lackl of comments makes some people sad, but it shouldn’t.
Suppose you are using JSON to keep configuration files, which you would like toannotate. Go ahead and insert all the comments you like. Then pipe it throughJSMin before handing it to your JSON parser.

谷歌翻译一下:

JSON中的注释
我从JSON中删除了注释,因为我看到有人使用它们来保存指令,这种做法会破坏互操作性。 我知道缺乏注释会让一些人感到悲伤,但事实并非如此。
假设您使用JSON来保留您想要注释的配置文件。 继续,插入您喜欢的所有注释。 然后将它传递给JSMin,然后将其传递给JSON解析器。