diff --git a/CHANGELOG.md b/CHANGELOG.md index 1824290a..ba58080a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### 更新信息 +- 2024.05.14:ai utils增加单测prompt;主页链接调整 - 2024.04.27:web utils资源加载方法、ua环境判断优化 - 2024.04.07:utils 增加 env环境判断、web utils 增加资源加载相关方法 - 2024.03.10:修改 utils & web util functions(部分方法类型声明及参数处理优化, Storage) diff --git a/README-en.md b/README-en.md index 1cce1600..9556ead0 100644 --- a/README-en.md +++ b/README-en.md @@ -214,6 +214,7 @@ A schema declaration and verification library headed by TypeScript, which can be | http://lab.ejci.net/favico.js/ | favicojs | A plugin for animating the pc website icon. | | https://alvarotrigo.com/fullPage/ | fullpagejs | A plugin for quickly building full-screen scrolling pages. | | https://github.com/buuing/lucky-canvas | lucky-canvas | A lottery plugin that supports web and cross-platform compatibility with mini-programs (large turntables/nine-square grids/slot machines). | +| https://mattboldt.com/demos/typed-js/ | typed.js | A js UI library that simulates typewriter effects. | ### Video/Audio diff --git a/README.md b/README.md index dca3390e..0dc8f1be 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ TypeScript官方手册 | `typescript` | TypeScript官方手册。 TypeScript Challenges | `ts-challenges` | TypeScript Challenges,在线学习/检验自己的ts类型编程水平。 ECMA standards | `ecma` | ECMAScript 协议标准。 -ECMA International(6) | `ES6` | ECMAScript6官方文档。 +ECMA International(6) | `ES6` | ECMAScript6官方文档。 ECMA International(6) 汉化 | `ES6` | ECMAScript6官方文档的中文翻译版(只有少部分且挺久没更新了)。 ECMA6 features | `ES6` | 通俗易懂的ECMAScript6特性demos。 ES6入门(阮一峰) | `ES6` | 国内使用频率最高的ECMAScript6文档,特别适合新手。 @@ -209,6 +209,7 @@ favico.js | `favicojs` | 一款让pc网站图标动起来的插件。 fullPage.js | `fullpagejs` | 一款快速搭建全屏滚动页面的插件。 Lucky Canvas | `lucky-canvas` | 一款支持web、小程序跨平台的 ( 大转盘 / 九宫格 / 老虎机 ) 抽奖插件。 +Typedjs | `typed.js` | 一款模拟打字机效果的js UI库。 ##### 视/音频 地址 | 标签 | 说明 @@ -217,7 +218,7 @@ video.js | `videojs` | 一款视频控制插件。 flv.js | `flvjs` | 一款无需flash的flv播放插件。 howler.js | `howlerjs` | 视、音频控制插件。 -jplayer | `jplayer` | jQuery的视、音频控制插件。 +jplayer | `jplayer` | jQuery的视、音频控制插件。 audio5.js | `audio5js` | 一款音频控制插件。 ##### 图片 @@ -236,7 +237,7 @@ 地址 | 标签 | 说明 ---- | ---- | ---- Voca.js | `vocajs` | 字符串的驼峰/修饰/填充/截断/转义/大小写更改等等。 -anchorme.js | `anchormejs` | 自动将文本中的链接/URL/电子邮件转化为可点击的锚点链接。 +anchorme.js | `anchormejs` | 自动将文本中的链接/URL/电子邮件转化为可点击的锚点链接。 String.js | `stringjs` | 字符串的截取删除等操作库(很久没维护了)。 qs.js | `qsjs` | URL参数处理库。 nano-id | `nanoid` | 小型(130 字节)、安全、URL友好、唯一的字符串 ID 生成器。 @@ -248,9 +249,9 @@ #### 1.4.5 工具 地址 | 标签 | 说明 ---- | ---- | ---- -RequireJs | `requirejs` | js模块化工具(webpack后很少有项目会用到)。 +RequireJs | `requirejs` | js模块化工具(webpack后很少有项目会用到)。 SeaJs | `seajs` | js模块化工具(webpack后很少有项目会用到)。 -Browserify | `browserify` | 浏览器端使用类似于 node 的 require() 方式。 +Browserify | `browserify` | 浏览器端使用类似于 node 的 require() 方式。 validate.js | `validate.js` | form表单校验工具。 validator.js | `validator.js` | 有名的内容校验工具,比如邮箱验证、数值验证等。 RxJS中文官网 | `RxJS` | ReactiveX编程理念的js异步编程库。 @@ -319,7 +320,7 @@ #### 1.4.10 加载 地址 | 标签 | 说明 ---- | ---- | ---- -aload.js | `aload.js` | 异步图片/js/css加载工具。 +aload.js | `aload.js` | 异步图片/js/css加载工具。 layzr.js | `layzr.js` | 轻量图片懒加载工具。 lazysizes.js | `lazysizes` | 高性能的图片/iframe懒加载工具。 infinite-scroll.js | `infinite-scroll` | “无限”滚动的加载插件。 diff --git a/datas/README.md b/datas/README.md new file mode 100644 index 00000000..7f77d219 --- /dev/null +++ b/datas/README.md @@ -0,0 +1,6 @@ +# fe-tools datas + +供 chrome 插件进行搜索和查询的数据。 +- `moo-css.json`:样式查询 +- `regex.json`:正则规则查询 +- `tools.json`:各常用链接查询 diff --git a/datas/moo-css.json b/datas/moo-css.json new file mode 100644 index 00000000..18636ef7 --- /dev/null +++ b/datas/moo-css.json @@ -0,0 +1 @@ +[{"name":"样式模块词典","children":[{"name":"grid(g-)","children":[{"属性":"box-sizing","说明":"设置要应用盒子尺寸相关属性的元素","CSS版本":"3"},{"属性":"margin","说明":"设置元素盒子四个外边距宽度的简写属性","CSS版本":"1"},{"属性":"margin-bottom","说明":"设置盒子下外边距的宽度","CSS版本":"1"},{"属性":"margin-left","说明":"设置盒子左外边距的宽度","CSS版本":"1"},{"属性":"margin-right","说明":"设置盒子右外边距的宽度","CSS版本":"1"},{"属性":"margin-top","说明":"设置盒子上外边距的宽度","CSS版本":"1"},{"属性":"bottom","说明":"设置元素下外边距边界与包含块下边界之间的偏移","CSS版本":"2"},{"属性":"left","说明":"设置元素左外边距边界与包含块左边界之间的偏移","CSS版本":"2"},{"属性":"position","说明":"设置元素的定位方法","CSS版本":"2"},{"属性":"right","说明":"设置元素右外边距边界与包含块右边界之间的偏移","CSS版本":"2"},{"属性":"top","说明":"设置元素上外边距边界与包含块上边界之间的偏移","CSS版本":"2"},{"属性":"font","说明":"在一条声明中设置文本字体、大小和颜色的简写属性","CSS版本":"1"},{"属性":"font-size","说明":"该属性设置元素的字体大小","CSS版本":"1"},{"属性":"line-height","说明":"设置行高","CSS版本":"1"}]},{"name":"function(f-)","children":[{"属性":"background-attachment","说明":"设置元素的背景附着属性,决定背景图片是否随页面一起滚动","CSS版本":"1"},{"属性":"background-clip","说明":"设置元素背景颜色和图像的裁剪区域","CSS版本":"3"},{"属性":"background-origin","说明":"设置背景图像绘制的起始位置","CSS版本":"3"},{"属性":"background-position","说明":"设置背景图像在元素盒子中的位置","CSS版本":"1"},{"属性":"background-repeat","说明":"设置背景图像的重复方式","CSS版本":"1"},{"属性":"background-size","说明":"设置背景图像的绘制尺寸","CSS版本":"3"},{"属性":"border","说明":"为所有边界设置所有边框宽度的简写属性","CSS版本":"1"},{"属性":"border-bottom","说明":"为所有下边框设置宽度的简写属性","CSS版本":"1"},{"属性":"border-bottom-left-radius","说明":"将边框左下角设置为圆角","CSS版本":"3"},{"属性":"border-bottom-right-radius","说明":"将边框右下角设置为圆角","CSS版本":"3"},{"属性":"border-bottom-style","说明":"设置元素下边框的样式","CSS版本":"1"},{"属性":"border-image-repeat","说明":"指定边框图像的缩放和重复方式","CSS版本":"3"},{"属性":"border-image-slice","说明":"指定边框图像的切割方式","CSS版本":"3"},{"属性":"border-left","说明":"设置元素左边框的简写属性","CSS版本":"1"},{"属性":"border-left-style","说明":"设置左边框的样式","CSS版本":"1"},{"属性":"border-radius","说明":"指定圆角边框的简写属性","CSS版本":"3"},{"属性":"border-right","说明":"设置元素右边框的简写属性","CSS版本":"1"},{"属性":"border-right-style","说明":"设置右边框的样式","CSS版本":"1"},{"属性":"border-style","说明":"设置所有边框样式的简写属性","CSS版本":"1"},{"属性":"border-top","说明":"为所有上边框设置宽度的简写属性","CSS版本":"1"},{"属性":"border-top-left-radius","说明":"将边框左上角设置为圆角","CSS版本":"3"},{"属性":"border-top-right-radius","说明":"将边框右上角设置为圆角","CSS版本":"3"},{"属性":"border-top-style","说明":"设置元素上边框的样式","CSS版本":"1"},{"属性":"outline-offset","说明":"设置轮廓距离元素边框边缘的偏移量","CSS版本":"2"},{"属性":"outline-style","说明":"设置轮廓的样式","CSS版本":"2"},{"属性":"outline","说明":"在一条声明中设置轮廓的简写属性","CSS版本":"2"},{"属性":"clear","说明":"设置盒子的左边界、右边界或左右两个边界不允许出现浮动元素","CSS版本":"1"},{"属性":"float","说明":"将元素移动到其包含块的左边界或者右边界,或者另一个浮动元素的边界","CSS版本":"1"},{"属性":"overflow","说明":"设置内容横向和竖向溢出盒子时处理方式的简写属性","CSS版本":"2"},{"属性":"overflow-x","说明":"设置内容横向溢出盒子时的处理方式","CSS版本":"3"},{"属性":"overflow-y","说明":"设置内容纵向溢出盒子时的处理方式","CSS版本":"3"},{"属性":"font","说明":"在一条声明中设置文本字体、大小和颜色的简写属性","CSS版本":"1"},{"属性":"font-family","说明":"指定文本所用的字体系列,排在前面的优先使用","CSS版本":"1"},{"属性":"font-style","说明":"指定采用正常字体、斜体还是倾斜字体","CSS版本":"1"},{"属性":"font-variant","说明":"指定字体是否以小型大写字母显示","CSS版本":"1"},{"属性":"font-weight","说明":"指定文本粗细","CSS版本":"1"},{"属性":"letter-spacing","说明":"设置字母间距","CSS版本":"1"},{"属性":"text-align","说明":"设置文本对齐方式","CSS版本":"1"},{"属性":"text-decoration","说明":"规定添加到文本的修饰(如下划线)","CSS版本":"1"},{"属性":"text-indent","说明":"规定文本块中首行文本的缩进","CSS版本":"1"},{"属性":"text-justify","说明":"设置文本对齐方式","CSS版本":"3"},{"属性":"word-spacing","说明":"指定单词间距","CSS版本":"1"},{"属性":"border-collapse","说明":"指定表格相邻单元格边框的显示样式","CSS版本":"2"},{"属性":"border-spacing","说明":"指定相邻单元格的边框的距离","CSS版本":"2"},{"属性":"cursor","说明":"指定光标的形状","CSS版本":"2"},{"属性":"empty-cells","说明":"指定是否显示表格中的空单元格","CSS版本":"2"},{"属性":"list-style","说明":"设置列表样式的简写属性","CSS版本":"1"},{"属性":"list-style-type","说明":"指定列表项标记的类型","CSS版本":"1"},{"属性":"transform","说明":"指定应用于元素的变换","CSS版本":"3"},{"属性":"transform-origin","说明":"指定元素变换的起点","CSS版本":"3"},{"属性":"vertical-align","说明":"该属性定义行内元素的基线相对于该元素所在行的基线的垂直对齐","CSS版本":"1"},{"属性":"text-transform","说明":"属性控制文本的大小写","CSS版本":"1"},{"属性":"direction","说明":"指定文本方向","CSS版本":"2"}]},{"name":"unit(u-)","children":[{"属性":"align-items","说明":"flex子项在flex容器的当前行的侧轴(纵轴)方向上的对齐方式","CSS版本":"3"},{"属性":"justify-content","说明":"用于设置或检索弹性盒子元素在主轴(横轴)方向上的对齐方式","CSS版本":"3"},{"属性":"caption-side","说明":"指定表格标题的位置","CSS版本":"2"},{"属性":"list-style-position","说明":"指定列表项标记相对于列表项内容的位置","CSS版本":"1"},{"属性":"table-layout","说明":"指定表格单元格、行和列的算法规则","CSS版本":"2"},{"属性":"border-bottom-width","说明":"设置元素下边框的宽度","CSS版本":"1"},{"属性":"border-image-width","说明":"设置边框图像的宽度","CSS版本":"3"},{"属性":"border-left-width","说明":"设置左边框的宽度","CSS版本":"1"},{"属性":"border-right-width","说明":"设置右边框的宽度","CSS版本":"1"},{"属性":"border-top-width","说明":"设置元素上边框的宽度","CSS版本":"1"},{"属性":"border-width","说明":"设置四个边框的宽度","CSS版本":"1"},{"属性":"outline-width","说明":"设置轮廓的宽度","CSS版本":"2"},{"属性":"outline","说明":"在一条声明中设置轮廓的简写属性","CSS版本":"2"},{"属性":"display","说明":"设置元素盒子的类型","CSS版本":"1"},{"属性":"height","说明":"设置元素盒子的高度","CSS版本":"1"},{"属性":"max-height","说明":"设置元素的最大高度","CSS版本":"2"},{"属性":"max-width","说明":"设置元素的最大宽度","CSS版本":"2"},{"属性":"min-height","说明":"设置元素的最小高度","CSS版本":"2"},{"属性":"min-width","说明":"设置元素的最小宽度","CSS版本":"2"},{"属性":"padding","说明":"设置元素盒子四个内边距宽度的简写属性","CSS版本":"1"},{"属性":"padding-bottom","说明":"设置盒子下内边距的宽度","CSS版本":"1"},{"属性":"padding-left","说明":"设置盒子左内边距的宽度","CSS版本":"1"},{"属性":"padding-right","说明":"设置盒子右内边距的宽度","CSS版本":"1"},{"属性":"padding-top","说明":"设置盒子上内边距的宽度","CSS版本":"1"},{"属性":"width","说明":"设置元素的宽度","CSS版本":"1"},{"属性":"column-count","说明":"指定多列布局的列数","CSS版本":"3"},{"属性":"column-fill","说明":"多列布局中列与列之间的内容如何发布","CSS版本":"3"},{"属性":"column-gap","说明":"指定多列布局中列与列之间的间隔","CSS版本":"3"},{"属性":"column-rule","说明":"多列布局中定义列与列之间的规则的简写属性","CSS版本":"3"},{"属性":"column-rule-color","说明":"设置多列布局中的颜色规划","CSS版本":"3"},{"属性":"column-rule-style","说明":"设置多列布局中的样式规则","CSS版本":"3"},{"属性":"column-rule-width","说明":"设置多列布局中的宽度规则","CSS版本":"3"},{"属性":"columns","说明":"在多列布局中设置列数和列宽度的简写属性","CSS版本":"3"},{"属性":"column-span","说明":"指定多列布局中元素能跨多少列","CSS版本":"3"},{"属性":"column-width","说明":"设置多列布局中列的宽度","CSS版本":"3"},{"属性":"flex-align、flex-direction、flex-order、flex-pack","说明":"它们都是由弹性盒子布局定义的","CSS版本":"3"}]},{"name":"status(z-)","children":[{"属性":"visibility","说明":"设置元素的可见性","CSS版本":"2"},{"属性":"z-index","说明":"设置定位元素的堆叠顺序","CSS版本":"2"},{"属性":"opacity","说明":"设置元素的透明度","CSS版本":"3"},{"属性":"display","说明":"指定元素在页面上的显示方式","CSS版本":"1"}]},{"name":"skin(s-)","children":[{"属性":"color","说明":"设置元素的前景色","CSS版本":"1"},{"属性":"list-style-image","说明":"指定列表项标记使用的图像","CSS版本":"1"},{"属性":"text-shadow","说明":"指定文本块的阴影效果","CSS版本":"3"},{"属性":"box-shadow","说明":"设置元素的一个或者多个阴影效果","CSS版本":"3"},{"属性":"outline-color","说明":"设置元素边框外围轮廓线的颜色","CSS版本":"2"},{"属性":"border-color","说明":"可设置一个元素的所有边框中可见部分的颜色,或者为 4 个边分别设置不同的颜色","CSS版本":"1"},{"属性":"border-top-color","说明":"为所有上边框设置颜色","CSS版本":"1"},{"属性":"border-right-color","说明":"设置右边框的颜色","CSS版本":"1"},{"属性":"border-left-color","说明":"设置左边框的颜色","CSS版本":"1"},{"属性":"border-bottom-color","说明":"为所有下边框设置颜色","CSS版本":"1"},{"属性":"background-color","说明":"设置背景颜色","CSS版本":"1"}]},{"name":"animation(a-)","children":[{"属性":"transition","说明":"指定CSS属性过渡效果的简写属性","CSS版本":"3"},{"属性":"transition-delay","说明":"指定触发过渡的延迟时间","CSS版本":"3"},{"属性":"transition-duration","说明":"指定过渡的持续时间","CSS版本":"3"},{"属性":"transition-property","说明":"指定带有过渡效果的属性","CSS版本":"3"},{"属性":"transition-timing-function","说明":"指定过渡期间计算中间属性值的函数","CSS版本":"3"},{"属性":"animation","说明":"设置动画的简写属性","CSS版本":"3"},{"属性":"animation-deplay","说明":"指定动画开始前的延迟时间","CSS版本":"3"},{"属性":"animation-direction","说明":"指定动画重复播放时的播放方向","CSS版本":"3"},{"属性":"animation-duration","说明":"指定动画的持续时间","CSS版本":"3"},{"属性":"animation-iteration-count","说明":"指定动画的循环次数","CSS版本":"3"},{"属性":"animation-name","说明":"指定用于动画的关键帧集合的名称","CSS版本":"3"},{"属性":"animation-play-state","说明":"指定动画状态(播放或暂停)","CSS版本":"3"},{"属性":"animation-timing-function","说明":"指定关键帧之间计算属性值的函数","CSS版本":"3"}]}]},{"name":"moo-css-base词典","children":[{"name":"颜色","children":[{"变量":"body_bg","十六进制色值":"#efeef5","说明":"灰-页面背景","效果":"
"},{"变量":"part_bg","十六进制色值":"#fff","说明":"白-模块背景","效果":"
"},{"变量":"font-base","十六进制色值":"#323232","说明":"黑,正文-1","效果":"
"},{"变量":"font-base_","十六进制色值":"#333","说明":"黑,正文-2","效果":"
"},{"变量":"font-sub","十六进制色值":"#666","说明":"灰色-正文","效果":"
"},{"变量":"font-sub_","十六进制色值":"#999","说明":"浅灰-次要文字","效果":"
"},{"变量":"font-link","十六进制色值":"#11a6fc","说明":"蓝色-链接","效果":"
"},{"变量":"font-up","十六进制色值":"#fe5d4e","说明":"红色-涨","效果":"
"},{"变量":"font-down","十六进制色值":"#009801","说明":"绿色-跌","效果":"
"},{"变量":"button-red","十六进制色值":"#cf0e0f","说明":"红色,按钮","效果":"
"},{"变量":"button-orange","十六进制色值":"#ff7010","说明":"橙色,按钮","效果":"
"},{"变量":"button-yellow","十六进制色值":"#f1ae3f","说明":"黄色,按钮","效果":"
"},{"变量":"button-gray","十六进制色值":"#ccc","说明":"灰色,按钮","效果":"
"},{"变量":"button-disable","十六进制色值":"#d6d6d6","说明":"灰色,按钮不可用","效果":"
"},{"变量":"border-gray","十六进制色值":"#e2e2e2","说明":"边框-灰","效果":"
"},{"变量":"red","十六进制色值":"#fe5d4e","说明":"红色-涨、按钮","效果":"
"},{"变量":"orange-light","十六进制色值":"#ff8f2e","说明":"浅橙","效果":"
"},{"变量":"orange","十六进制色值":"#ff7010","说明":"橙色","效果":"
"},{"变量":"yellow","十六进制色值":"#f1ae3f","说明":"黄色","效果":"
"},{"变量":"green","十六进制色值":"#009801","说明":"绿色","效果":"
"},{"变量":"blue","十六进制色值":"#01a2fc","说明":"蓝色","效果":"
"},{"变量":"gray","十六进制色值":"#d3d6d8","说明":"灰色","效果":"
"},{"变量":"gray-light","十六进制色值":"#999","说明":"浅灰色","效果":"
"},{"变量":"white","十六进制色值":"#fff","说明":"白色","效果":"
"}]},{"name":"方法","children":[{"方法名":"unit","参数":"name, px","说明":"设置vw属性,name为属性名,px为像素值,如less:.unit(width, 100)","平台":"mobile"},{"方法名":"wh","参数":"width, height","说明":"设置宽高","平台":"mobile/PC"},{"方法名":"square","参数":"width","说明":"设置正方形(宽高相等)","平台":"mobile/PC"},{"方法名":"hh","参数":"height","说明":"设置高度同时设置行高,height=line-height","平台":"mobile/PC"},{"方法名":"font","参数":"font-size, line-height","说明":"设置字体大小及行高,如less:.font(24px, 40px)","平台":"mobile/PC"},{"方法名":"sc","参数":"font-size, color","说明":"设置字体大小及颜色,如less:.sc(26px, #ccc)","平台":"mobile/PC"},{"方法名":"mulit-ellipsis","参数":"maxline","说明":"多行文字溢出展示\"...\",如less: .mulit-ellipsis(2)","平台":"mobile/PC"},{"方法名":"pseudo-class","参数":"-","说明":"设置伪元素布局,通常用作css图形、边框1px","平台":"mobile/PC"},{"方法名":"font-DIN","参数":"-","说明":"font-family使用DIN字体","平台":"mobile"},{"方法名":"position","参数":"top, left","说明":"设置top及left,如less:.position(10%, 15vh)","平台":"mobile/PC"},{"方法名":"bis","参数":"url","说明":"设置背景图且填充整个容器,如.bis('https://github.com/MichealWayne/Moo-CSS/raw/master/docs/logo.png')","平台":"mobile/PC"},{"方法名":"blur","参数":"range","说明":"设置模糊,range为模糊半径","平台":"mobile/PC"},{"方法名":"center","参数":"-","说明":"水平垂直居中定位","平台":"mobile/PC"},{"方法名":"fixed-mask","参数":"-","说明":"设置fixed全屏布局样式","平台":"mobile/PC"},{"方法名":"border-top-radius","参数":"radius","说明":"单边圆角,上边","平台":"mobile/PC"},{"方法名":"border-right-radius","参数":"radius","说明":"单边圆角,右边","平台":"mobile/PC"},{"方法名":"border-bottom-radius","参数":"radius","说明":"单边圆角,下边","平台":"mobile/PC"},{"方法名":"border-left-radius","参数":"radius","说明":"单边圆角,左边","平台":"mobile/PC"},{"方法名":"set-scroll","参数":"color","说明":"设置滚动条颜色,需要hsl颜色,如less:.setScroll(hsla(200, 100%, 54%, 1))","平台":"mobile"},{"方法名":"set-scroll-elastic","参数":"-","说明":"设置滚动区域带弹性效果(IOS)","平台":"mobile"},{"方法名":"min-width","参数":"min-width","说明":"设置最小宽度且兼容IE6","平台":"PC"},{"方法名":"min-height","参数":"min-height","说明":"设置最小高度且兼容IE6","平台":"PC"},{"方法名":"dib","参数":"-","说明":"内联块级元素, 兼容IE6","平台":"PC"},{"方法名":"fixed","参数":"-","说明":"固定定位, 兼容IE6","平台":"PC"},{"方法名":"fl","参数":"-","说明":"左浮动, 兼容 IE6","平台":"PC"},{"方法名":"fr","参数":"-","说明":"右浮动, 兼容 IE6","平台":"PC"},{"方法名":"clearfix","参数":"-","说明":"清除浮动","平台":"PC"},{"方法名":"no-select","参数":"-","说明":"禁止文字选中","平台":"PC"},{"方法名":"bg-variant","参数":"color","说明":"按钮颜色设置(hover及focus颜色加深)","平台":"PC"},{"方法名":"opacity","参数":"opacity","说明":"设置透明度,兼容 IE6","平台":"PC"}]},{"name":"样式","children":[{"name":"grid","children":[{"类/属性名":".g-box_b","属性":"`-webkit-box-sizing: border-box; box-sizing: border-box;`","说明":"对元素指定宽度和高度包括了 padding 和 border 。| mobile/PC"},{"类/属性名":".g-box_c","属性":"`-webkit-box-sizing: content-box; box-sizing: content-box;`","说明":"指定元素的宽度和高度(最小/最大属性)适用于box的宽度和高度。元素的填充和边框布局和绘制指定宽度和高度除外。","平台":"mobile/PC"},{"类/属性名":".g-center","属性":"`margin-left: auto;margin-right: auto;`","说明":"块元素居中。","平台":"mobile/PC"},{"类/属性名":".g-pf","属性":"`position: fixed;`","说明":"设置固定定位","平台":"mobile/PC"},{"类/属性名":".g-pr","属性":"`position: relative;`","说明":"设置相对定位","平台":"mobile/PC"},{"类/属性名":".g-pa","属性":"`position: absolute;`","说明":"设置绝对定位","平台":"mobile/PC"},{"类/属性名":".g-fs10","属性":"`font-size: 1.3333vw;`","说明":"字体大小为10px(750px设计稿,1vw=7.5px响应式,后续移动长度单位同此)","平台":"mobile"},{"类/属性名":".g-fs12","属性":"`font-size: 1.6vw;`","说明":"字体大小为12px","平台":"mobile"},{"类/属性名":".g-fs14","属性":"`font-size: 1.8667vw;`","说明":"字体大小为14px","平台":"mobile"},{"类/属性名":".g-fs16","属性":"`font-size: 2.1333vw;`","说明":"字体大小为16px","平台":"mobile"},{"类/属性名":".g-fs18","属性":"`font-size: 2.4vw;`","说明":"字体大小为18px","平台":"mobile"},{"类/属性名":".g-fs20","属性":"`font-size: 2.6667vw;`","说明":"字体大小为20px","平台":"mobile"},{"类/属性名":".g-fs22","属性":"`font-size: 2.9333vw;`","说明":"字体大小为22px","平台":"mobile"},{"类/属性名":".g-fs24","属性":"`font-size: 3.2vw;`","说明":"字体大小为24px","平台":"mobile"},{"类/属性名":".g-fs26","属性":"`font-size: 3.4667vw;`","说明":"字体大小为26px","平台":"mobile"},{"类/属性名":".g-fs28","属性":"`font-size: 3.7333vw;`","说明":"字体大小为28px","平台":"mobile"},{"类/属性名":".g-fs30","属性":"`font-size: 4vw;`","说明":"字体大小为30px","平台":"mobile"},{"类/属性名":".g-fs32","属性":"`font-size: 4.2667vw;`","说明":"字体大小为32px","平台":"mobile"},{"类/属性名":".g-fs34","属性":"`font-size: 4.5333vw;`","说明":"字体大小为34px","平台":"mobile"},{"类/属性名":".g-fs36","属性":"`font-size: 4.8vw;`","说明":"字体大小为36px","平台":"mobile"},{"类/属性名":".g-fs38","属性":"`font-size: 5.0667vw;`","说明":"字体大小为38px","平台":"mobile"},{"类/属性名":".g-fs40","属性":"`font-size: 5.3333vw;`","说明":"字体大小为40px","平台":"mobile"},{"类/属性名":".g-lh150per","属性":"`line-height: 1.5;`","说明":"行高1.5","平台":"mobile/PC"},{"类/属性名":".g-lh180per","属性":"`line-height: 1.8;`","说明":"行高1.8","平台":"mobile/PC"},{"类/属性名":".g-lh200per","属性":"`line-height: 2;`","说明":"行高2","平台":"mobile/PC"},{"类/属性名":".g-m20","属性":"`margin: 2.6667vw;`","说明":"margin四边均为20px","平台":"mobile"},{"类/属性名":".g-m30","属性":"`margin: 4vw;`","说明":"margin四边均为30px","平台":"mobile"},{"类/属性名":".g-m40","属性":"`margin: 5.3333vw;`","说明":"margin四边均为40px","平台":"mobile"},{"类/属性名":".g-m50","属性":"`margin: 6.6667vw;`","说明":"margin四边均为60px","平台":"mobile"},{"类/属性名":".g-mt10","属性":"`margin-top: 1.3333vw;`","说明":"上边距10px","平台":"mobile"},{"类/属性名":".g-mt20","属性":"`margin-top: 2.6667vw;`","说明":"上边距20px","平台":"mobile"},{"类/属性名":".g-mt30","属性":"`margin-top: 4vw;`","说明":"上边距30px","平台":"mobile"},{"类/属性名":".g-mt40","属性":"`margin-top: 5.3333vw;`","说明":"上边距40px","平台":"mobile"},{"类/属性名":".g-mt50","属性":"`margin-top: 6.6667vw;`","说明":"上边距50px","平台":"mobile"},{"类/属性名":".g-mt60","属性":"`margin-top: 8vw;`","说明":"上边距60px","平台":"mobile"},{"类/属性名":".g-mt70","属性":"`margin-top: 9.3333vw;`","说明":"上边距70px","平台":"mobile"},{"类/属性名":".g-mt80","属性":"`margin-top: 10.6667vw;`","说明":"上边距80px","平台":"mobile"},{"类/属性名":".g-mt90","属性":"`margin-top: 12vw;`","说明":"上边距90px","平台":"mobile"},{"类/属性名":".g-mt100","属性":"`margin-top: 13.3333vw;`","说明":"上边距100px","平台":"mobile"},{"类/属性名":".g-mr10","属性":"`margin-right: 1.3333vw;`","说明":"右边距10px","平台":"mobile"},{"类/属性名":".g-mr20","属性":"`margin-right: 2.6667vw;`","说明":"右边距20px","平台":"mobile"},{"类/属性名":".g-mr30","属性":"`margin-right: 4vw;`","说明":"右边距30px","平台":"mobile"},{"类/属性名":".g-mr40","属性":"`margin-right: 5.3333vw;`","说明":"右边距40px","平台":"mobile"},{"类/属性名":".g-mr50","属性":"`margin-right: 6.6667vw;`","说明":"右边距50px","平台":"mobile"},{"类/属性名":".g-mr60","属性":"`margin-right: 8vw;`","说明":"右边距60px","平台":"mobile"},{"类/属性名":".g-mr70","属性":"`margin-right: 9.3333vw;`","说明":"右边距70px","平台":"mobile"},{"类/属性名":".g-mr80","属性":"`margin-right: 10.6667vw;`","说明":"右边距80px","平台":"mobile"},{"类/属性名":".g-mr90","属性":"`margin-right: 12vw;`","说明":"右边距90px","平台":"mobile"},{"类/属性名":".g-mr100","属性":"`margin-right: 13.3333vw;`","说明":"右边距100px","平台":"mobile"},{"类/属性名":".g-mb10","属性":"`margin-bottom: 1.3333vw;`","说明":"下边距10px","平台":"mobile"},{"类/属性名":".g-mb20","属性":"`margin-bottom: 2.6667vw;`","说明":"下边距20px","平台":"mobile"},{"类/属性名":".g-mb30","属性":"`margin-bottom: 4vw;`","说明":"下边距30px","平台":"mobile"},{"类/属性名":".g-mb40","属性":"`margin-bottom: 5.3333vw;`","说明":"下边距40px","平台":"mobile"},{"类/属性名":".g-mb50","属性":"`margin-bottom: 6.6667vw;`","说明":"下边距50px","平台":"mobile"},{"类/属性名":".g-mb60","属性":"`margin-bottom: 8vw;`","说明":"下边距60px","平台":"mobile"},{"类/属性名":".g-mb70","属性":"`margin-bottom: 9.3333vw;`","说明":"下边距70px","平台":"mobile"},{"类/属性名":".g-mb80","属性":"`margin-bottom: 10.6667vw;`","说明":"下边距80px","平台":"mobile"},{"类/属性名":".g-mb90","属性":"`margin-bottom: 12vw;`","说明":"下边距90px","平台":"mobile"},{"类/属性名":".g-mb100","属性":"`margin-bottom: 13.3333vw;`","说明":"下边距100px","平台":"mobile"},{"类/属性名":".g-ml10","属性":"`margin-left: 1.3333vw;`","说明":"左边距10px","平台":"mobile"},{"类/属性名":".g-ml20","属性":"`margin-left: 2.6667vw;`","说明":"左边距20px","平台":"mobile"},{"类/属性名":".g-ml30","属性":"`margin-left: 4vw;`","说明":"左边距30px","平台":"mobile"},{"类/属性名":".g-ml40","属性":"`margin-left: 5.3333vw;`","说明":"左边距40px","平台":"mobile"},{"类/属性名":".g-ml50","属性":"`margin-left: 6.6667vw;`","说明":"左边距50px","平台":"mobile"},{"类/属性名":".g-ml60","属性":"`margin-left: 8vw;`","说明":"左边距60px","平台":"mobile"},{"类/属性名":".g-ml70","属性":"`margin-left: 9.3333vw;`","说明":"左边距70px","平台":"mobile"},{"类/属性名":".g-ml80","属性":"`margin-left: 10.6667vw;`","说明":"左边距80px","平台":"mobile"},{"类/属性名":".g-ml90","属性":"`margin-left: 12vw;`","说明":"左边距90px","平台":"mobile"},{"类/属性名":".g-ml100","属性":"`margin-left: 13.3333vw;`","说明":"左边距100px","平台":"mobile"},{"类/属性名":"* 注意:PC版.g-fs*单位跨度从10px到40px,如.g-fs10, ... , .g-fs40;..g-mt*/.g-mr*/.g-mb*/.g-ml*单位跨度从10px到200px,如.g-mt10, ... , .g-mt200"}]},{"name":"unit","children":[{"类/属性名":".u-block","属性":"`display: block`","说明":"设置为块元素","平台":"mobile/PC"},{"类/属性名":".u-block_il","属性":"`display: inline-block`","说明":"设置为行内块元素","平台":"mobile/PC"},{"类/属性名":".u-inline","属性":"`display: inline`","说明":"设置为行内元素","平台":"mobile/PC"},{"类/属性名":".u-w","属性":"`display: block; width: 100%;`","说明":"块元素宽度100%","平台":"mobile/PC"},{"类/属性名":".u-w92per","属性":"`display: block; width: 92%;`","说明":"块元素宽度92%","平台":"mobile/PC"},{"类/属性名":".u-w50per","属性":"`display: block; width: 50%;`","说明":"块元素宽度50%","平台":"mobile/PC"},{"类/属性名":".u-w10","属性":"`width: 1.3333vw;`","说明":"宽度10px","平台":"mobile"},{"类/属性名":".u-w20","属性":"`width: 2.6667vw;`","说明":"宽度20px","平台":"mobile"},{"类/属性名":".u-w30","属性":"`width: 4vw;`","说明":"宽度30px","平台":"mobile"},{"类/属性名":".u-w40","属性":"`width: 5.3333vw;`","说明":"宽度40px","平台":"mobile"},{"类/属性名":".u-w50","属性":"`width: 6.6667vw;`","说明":"宽度50px","平台":"mobile"},{"类/属性名":".u-w60","属性":"`width: 8vw;`","说明":"宽度60px","平台":"mobile"},{"类/属性名":".u-w70","属性":"`width: 9.3333vw;`","说明":"宽度70px","平台":"mobile"},{"类/属性名":".u-w80","属性":"`width: 10.6667vw;`","说明":"宽度80px","平台":"mobile"},{"类/属性名":".u-w90","属性":"`width: 12vw;`","说明":"宽度90px","平台":"mobile"},{"类/属性名":".u-w100","属性":"`width: 13.3333vw;`","说明":"宽度100px","平台":"mobile"},{"类/属性名":".u-w150","属性":"`width: 19.9995vw`","说明":"宽度150px","平台":"mobile"},{"类/属性名":".u-w200","属性":"`width: 26.6667vw`","说明":"宽度200px","平台":"mobile"},{"类/属性名":".u-h","属性":"`height: 100%`","说明":"高度100%","平台":"mobile/PC"},{"类/属性名":".u-h10","属性":"`height: 1.3333vw;`","说明":"高度10px","平台":"mobile"},{"类/属性名":".u-h20","属性":"`height: 2.6667vw;`","说明":"高度20px","平台":"mobile"},{"类/属性名":".u-h30","属性":"`height: 4vw;`","说明":"高度30px","平台":"mobile"},{"类/属性名":".u-h40","属性":"`height: 5.3333vw;`","说明":"高度40px","平台":"mobile"},{"类/属性名":".u-h50","属性":"`height: 6.6667vw;`","说明":"高度50px","平台":"mobile"},{"类/属性名":".u-h60","属性":"`height: 8vw;`","说明":"高度60px","平台":"mobile"},{"类/属性名":".u-h70","属性":"`height: 9.3333vw;`","说明":"高度70px","平台":"mobile"},{"类/属性名":".u-h80","属性":"`height: 10.6667vw;`","说明":"高度80px","平台":"mobile"},{"类/属性名":".u-h90","属性":"`height: 12vw;`","说明":"高度90px","平台":"mobile"},{"类/属性名":".u-h100","属性":"`height: 13.3333vw;`","说明":"高度100px","平台":"mobile"},{"类/属性名":".u-h150","属性":"`height: 19.9995vw`","说明":"高度150px","平台":"mobile"},{"类/属性名":".u-h200","属性":"`height: 26.6667vw`","说明":"高度200px","平台":"mobile"},{"类/属性名":".u-p10","属性":"`padding: 1.3333vw;`","说明":"padding四边均为10px","平台":"mobile"},{"类/属性名":".u-p15","属性":"`padding: 1.99995vw;`","说明":"padding四边均为10px","平台":"mobile"},{"类/属性名":".u-p20","属性":"`padding: 2.6667vw;`","说明":"padding四边均为20px","平台":"mobile"},{"类/属性名":".u-p30","属性":"`padding: 4vw;`","说明":"padding四边均为30px","平台":"mobile"},{"类/属性名":".u-pt10","属性":"`padding-top: 1.3333vw;`","说明":"上内边距10px","平台":"mobile"},{"类/属性名":".u-pt15","属性":"`padding-top: 1.3333vw;`","说明":"上内边距15px","平台":"mobile"},{"类/属性名":".u-pt20","属性":"`padding-top: 2.6667vw;`","说明":"上内边距20px","平台":"mobile"},{"类/属性名":".u-pt30","属性":"`padding-top: 4vw;`","说明":"上内边距30px","平台":"mobile"},{"类/属性名":".u-pt40","属性":"`padding-top: 5.3333vw;`","说明":"上内边距40px","平台":"mobile"},{"类/属性名":".u-pt50","属性":"`padding-top: 6.6667vw;`","说明":"上内边距50px","平台":"mobile"},{"类/属性名":".u-pt60","属性":"`padding-top: 8vw;`","说明":"上内边距60px","平台":"mobile"},{"类/属性名":".u-pt70","属性":"`padding-top: 9.3333vw;`","说明":"上内边距70px","平台":"mobile"},{"类/属性名":".u-pt80","属性":"`padding-top: 10.6667vw;`","说明":"上内边距80px","平台":"mobile"},{"类/属性名":".u-pt90","属性":"`padding-top: 12vw;`","说明":"上内边距90px","平台":"mobile"},{"类/属性名":".u-pt100","属性":"`padding-top: 13.3333vw;`","说明":"上内边距100px","平台":"mobile"},{"类/属性名":".u-pr4per","属性":"`padding-right: 4%;`","说明":"右内边距4%","平台":"mobile/PC"},{"类/属性名":".u-pr10","属性":"`padding-right: 1.3333vw;`","说明":"右内边距10px","平台":"mobile"},{"类/属性名":".u-pr15","属性":"`padding-right: 1.3333vw;`","说明":"右内边距15px","平台":"mobile"},{"类/属性名":".u-pr20","属性":"`padding-right: 2.6667vw;`","说明":"右内边距20px","平台":"mobile"},{"类/属性名":".u-pr30","属性":"`padding-right: 4vw;`","说明":"右内边距30px","平台":"mobile"},{"类/属性名":".u-pr40","属性":"`padding-right: 5.3333vw;`","说明":"右内边距40px","平台":"mobile"},{"类/属性名":".u-pr50","属性":"`padding-right: 6.6667vw;`","说明":"右内边距50px","平台":"mobile"},{"类/属性名":".u-pr60","属性":"`padding-right: 8vw;`","说明":"右内边距60px","平台":"mobile"},{"类/属性名":".u-pr70","属性":"`padding-right: 9.3333vw;`","说明":"右内边距70px","平台":"mobile"},{"类/属性名":".u-pr80","属性":"`padding-right: 10.6667vw;`","说明":"右内边距80px","平台":"mobile"},{"类/属性名":".u-pr90","属性":"`padding-right: 12vw;`","说明":"右内边距90px","平台":"mobile"},{"类/属性名":".u-pr100","属性":"`padding-right: 13.3333vw;`","说明":"右内边距100px","平台":"mobile"},{"类/属性名":".u-pb10","属性":"`padding-bottom: 1.3333vw;`","说明":"下内边距10px","平台":"mobile"},{"类/属性名":".u-pb15","属性":"`padding-bottom: 1.3333vw;`","说明":"下内边距15px","平台":"mobile"},{"类/属性名":".u-pb20","属性":"`padding-bottom: 2.6667vw;`","说明":"下内边距20px","平台":"mobile"},{"类/属性名":".u-pb30","属性":"`padding-bottom: 4vw;`","说明":"下内边距30px","平台":"mobile"},{"类/属性名":".u-pb40","属性":"`padding-bottom: 5.3333vw;`","说明":"下内边距40px","平台":"mobile"},{"类/属性名":".u-pb50","属性":"`padding-bottom: 6.6667vw;`","说明":"下内边距50px","平台":"mobile"},{"类/属性名":".u-pb60","属性":"`padding-bottom: 8vw;`","说明":"下内边距60px","平台":"mobile"},{"类/属性名":".u-pb70","属性":"`padding-bottom: 9.3333vw;`","说明":"下内边距70px","平台":"mobile"},{"类/属性名":".u-pb80","属性":"`padding-bottom: 10.6667vw;`","说明":"下内边距80px","平台":"mobile"},{"类/属性名":".u-pb90","属性":"`padding-bottom: 12vw;`","说明":"下内边距90px","平台":"mobile"},{"类/属性名":".u-pb100","属性":"`padding-bottom: 13.3333vw;`","说明":"下内边距100px","平台":"mobile"},{"类/属性名":".u-pl4per","属性":"`padding-left: 4%;`","说明":"左内边距4%","平台":"mobile/PC"},{"类/属性名":".u-pl10","属性":"`padding-left: 1.3333vw;`","说明":"左内边距10px","平台":"mobile"},{"类/属性名":".u-pl15","属性":"`padding-left: 1.3333vw;`","说明":"左内边距15px","平台":"mobile"},{"类/属性名":".u-pl20","属性":"`padding-left: 2.6667vw;`","说明":"左内边距20px","平台":"mobile"},{"类/属性名":".u-pl30","属性":"`padding-left: 4vw;`","说明":"左内边距30px","平台":"mobile"},{"类/属性名":".u-pl40","属性":"`padding-left: 5.3333vw;`","说明":"左内边距40px","平台":"mobile"},{"类/属性名":".u-pl50","属性":"`padding-left: 6.6667vw;`","说明":"左内边距50px","平台":"mobile"},{"类/属性名":".u-pl60","属性":"`padding-left: 8vw;`","说明":"左内边距60px","平台":"mobile"},{"类/属性名":".u-pl70","属性":"`padding-left: 9.3333vw;`","说明":"左内边距70px","平台":"mobile"},{"类/属性名":".u-pl80","属性":"`padding-left: 10.6667vw;`","说明":"左内边距80px","平台":"mobile"},{"类/属性名":".u-pl90","属性":"`padding-left: 12vw;`","说明":"左内边距90px","平台":"mobile"},{"类/属性名":".u-pl100","属性":"`padding-left: 13.3333vw;`","说明":"左内边距100px","平台":"mobile"},{"类/属性名":".u-flex","属性":"`display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;`","说明":"设置flex布局","平台":"mobile/PC"},{"类/属性名":".u-s-middle","属性":"`display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;-webkit-justify-content: space-around; justify-content: space-around; -webkit-align-items: center; align-items: center;`","说明":"垂直居中,水平距两端留白平铺","平台":"mobile/PC"},{"类/属性名":".u-l-middle","属性":"`display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;-webkit-box-align: center; -webkit-align-items: center; align-items: center;`","说明":"垂直居中,水平靠左","平台":"mobile/PC"},{"类/属性名":".u-c-middle","属性":"`display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;-webkit-box-align: center; -webkit-align-items: center; align-items: center; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;`","说明":"垂直居中,水平居中","平台":"mobile/PC"},{"类/属性名":".u-j-middle","属性":"`display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;-webkit-box-align: center; -webkit-align-items: center; align-items: center; -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between;`","说明":"垂直居中,水平贴两端平铺","平台":"mobile/PC"},{"类/属性名":".u-r-middle","属性":"`display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;-webkit-box-align: center; -webkit-align-items: center; align-items: center; -webkit-box-pack: end; -webkit-justify-content: flex-end; justify-content: flex-end;`","说明":"垂直居中,水平靠右","平台":"mobile/PC"},{"类/属性名":"* 注意:PC版.u-w*/.u-h*/.u-pt*/.u-pr*/.u-pb*/.u-pl*单位跨度从10px到200px,如.u-w10, ... , .u-w200"}]},{"name":"function","children":[{"类/属性名":".f-wk_reset","属性":"`-webkit-appearance: none;`","说明":"清除webkit默认样式","平台":"mobile/PC"},{"类/属性名":".f-bg_cover, [f-bg_cover]","属性":"`background-repeat: no-repeat; background-position: 0 0; background-size: 100% 100%;`","说明":"背景图片填充整个容器","平台":"mobile/PC"},{"类/属性名":".f-ovhidden","属性":"`overflow: hidden;`","说明":"溢出隐藏","平台":"mobile/PC"},{"类/属性名":".f-scroll_y","属性":"`overflow-y: auto;`","说明":"竖向滚动条自动","平台":"mobile/PC"},{"类/属性名":".f-ellipsis","属性":"`white-space: nowrap; text-overflow: ellipsis; overflow: hidden;`","说明":"单行文字超出显示'...'","平台":"mobile/PC"},{"类/属性名":".f-equal","属性":"`margin-bottom: -9999px; padding-bottom: 9999px;`","说明":"多列等高","平台":"mobile/PC"},{"类/属性名":".f-tl","属性":"`text-align: left;`","说明":"文字左对齐","平台":"mobile/PC"},{"类/属性名":".f-tc","属性":"`text-align: center;`","说明":"文字居中对齐","平台":"mobile/PC"},{"类/属性名":".f-tr","属性":"`text-align: right;`","说明":"文字右对齐","平台":"mobile/PC"},{"类/属性名":".f-tj","属性":"`-webkit-margin-start: 0; -webkit-margin-end: 0; text-align: justify;`","说明":"文字两端对齐","平台":"mobile/PC"},{"类/属性名":".f-vt","属性":"`vertical-align: top;`","说明":"行元素垂直对齐方式为顶部","平台":"mobile/PC"},{"类/属性名":".f-vm","属性":"`vertical-align: middle;`","说明":"行元素垂直对齐方式为居中","平台":"mobile/PC"},{"类/属性名":".f-vb","属性":"`vertical-align: bottom;`","说明":"行元素垂直对齐方式为居底","平台":"mobile/PC"},{"类/属性名":".f-fl","属性":"`float: left; display: inline;`","说明":"左浮动","平台":"mobile/PC"},{"类/属性名":".f-fr","属性":"`float: right; display: inline;`","说明":"右浮动","平台":"mobile/PC"},{"类/属性名":".f-cb","属性":"`clear: both;`","说明":"两侧请浮动","平台":"mobile/PC"},{"类/属性名":".f-cl","属性":"`clear: left;`","说明":"左侧请浮动","平台":"mobile/PC"},{"类/属性名":".f-cr","属性":"`clear: right;`","说明":"右侧请浮动","平台":"mobile/PC"},{"类/属性名":".f-nowrap","属性":"`white-space: nowrap;`","说明":"保持文字不换行","平台":"mobile/PC"},{"类/属性名":".f-normal","属性":"`font-weight: normal;`","说明":"字体大小为普通","平台":"mobile/PC"},{"类/属性名":".f-bold","属性":"`font-weight: bold;`","说明":"文字大小为粗体","平台":"mobile/PC"},{"类/属性名":".f-ti2","属性":"`text-indent: 2em;`","说明":"段落首行缩进2个字符","平台":"mobile/PC"},{"类/属性名":".f-ft_italic","属性":"`font-style: italic;`","说明":"文字斜体","平台":"mobile/PC"},{"类/属性名":".f-unl","属性":"`text-decoration: underline;`","说明":"文字加下划线","平台":"mobile/PC"},{"类/属性名":".f-unl_none","属性":"`text-decoration: none;`","说明":"文字取消下划线","平台":"mobile/PC"},{"类/属性名":".f-bdr10","属性":"`border-radius: 5px;`","说明":"圆角5px,移动为10px","平台":"mobile/PC"},{"类/属性名":".f-bdr8","属性":"`border-radius: 4px;`","说明":"圆角4px,移动为8px","平台":"mobile/PC"},{"类/属性名":".f-clear","属性":"`height: 0px; line-height: 0px; font-size: 0px; clear: both; overflow: hidden; zoom: 1;`","说明":"清浮动","平台":"PC"},{"类/属性名":".f-tap_reset","属性":"`-webkit-tap-highlight-color: rgba(0, 0, 0, 0);`","说明":"取消移动端触控蒙层","平台":"mobile"},{"类/属性名":".f-song_font","属性":"`font-family: \"宋体\";`","说明":"使用宋体文字","平台":"PC"},{"类/属性名":".f-yahei_font","属性":"`font-family: \"Microsoft Yahei\";`","说明":"使用微软雅黑文字","平台":"PC"},{"类/属性名":".f-event_none","属性":"`pointer-events: none;`","说明":"事件穿透","平台":"mobile/PC (`0.9.2`起)"},{"类/属性名":".f-inline_wrap","属性":"`content: \"\\A\"; white-space: pre;`","说明":"使行内元素换行","平台":"mobile/PC(`0.9.2`起)"},{"类/属性名":".f-cursor_p","属性":"`cursor: pointer`","说明":"鼠标覆盖交互为链接效果","平台":"PC(`0.9.2`起)"},{"类/属性名":".f-cursor_none","属性":"`cursor: default`","说明":"鼠标覆盖交互为默认鼠标效果","平台":"PC(`0.9.2`起)"},{"类/属性名":".f-cursor_not","属性":"`cursor: not-allowed`","说明":"鼠标覆盖交互为禁止效果","平台":"PC(`0.9.2`起)"},{"类/属性名":".f-noselect","属性":"`-webkit-user-select: none; user-select: none;`","说明":"禁止文字选中","平台":"mobile/PC(`0.9.4`起)"}]},{"name":"component","children":[{"类/属性名":".u-icon, .u-btn","属性":"`display: block;`","说明":"按钮/图标设置为块元素","平台":"mobile/PC"},{"类/属性名":".u-icon_il, .u-btn_il","属性":"`display: inline-block;`","说明":"按钮/图标设置为行内块元素","平台":"mobile/PC"},{"类/属性名":".f-pclass","属性":"`position: relative;&:before,&:after {position: absolute;content: '';}`","说明":"设置伪元素,通常用作图形或1px边框","平台":"mobile/PC"},{"类/属性名":".f-b_1px","属性":"`position: relative; &:after{ position: absolute; content: ''; background-color: @border-gray;}`","说明":"设置retina屏幕边框1px,需要配合.bt_1px/.br_1px/.bb_1px/.bl_1px使用","平台":"mobile/PC"},{"类/属性名":".bt_1px","属性":"`left: 0; width: 100%; height: 1px; -webkit-transform: scale(1, 0.5); transform: scale(1, 0.5); top: 0;`","说明":"设置上边框1px","平台":"mobile/PC"},{"类/属性名":".bb_1px","属性":"`left: 0; width: 100%; height: 1px; -webkit-transform: scale(1, 0.5); transform: scale(1, 0.5); bottom: 0;`","说明":"设置下边框1px","平台":"mobile/PC"},{"类/属性名":".br_1px","属性":"`top: 0; width: 1px; height: 100%; -webkit-transform: scale(0.5, 1); transform: scale(0.5, 1); right: 0;`","说明":"设置右边框1px","平台":"mobile/PC"},{"类/属性名":".bl_1px","属性":"`top: 0; width: 1px; height: 100%; -webkit-transform: scale(0.5, 1); transform: scale(0.5, 1); left: 0;`","说明":"设置左边框1px","平台":"mobile/PC"},{"类/属性名":".u-btn, .u-btn_il","属性":"`padding: 0; text-align: center; border-radius: 4px;`","说明":"设置按钮基础样式,赋值样式见下表button","平台":"mobile/PC"},{"类/属性名":".u-mask","属性":"`z-index: 18; position: fixed; top: 0; bottom: 0; left: 0; right: 0; width: 100%; background-color: rgba(0, 0, 0, 0.3);`","说明":"固定黑色蒙层","平台":"mobile/PC"},{"类/属性名":".u-win, .u-dialog","属性":"`position: fixed; z-index: 19; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);`","说明":"弹窗基础样式","平台":"mobile/PC"},{"name":"button(component)","children":[{"*为.u-btn/.u-btn_il的附加样式":"类/属性名"},{"*为.u-btn/.u-btn_il的附加样式":"[no-bdr]"},{"*为.u-btn/.u-btn_il的附加样式":"[s-color=\"yellow\"]"},{"*为.u-btn/.u-btn_il的附加样式":"[s-color=\"orange\"]"},{"*为.u-btn/.u-btn_il的附加样式":"[s-color=\"red\"]"},{"*为.u-btn/.u-btn_il的附加样式":"[s-color=\"gray\"]"},{"*为.u-btn/.u-btn_il的附加样式":"[s-color=\"bd_gray\"]"},{"*为.u-btn/.u-btn_il的附加样式":"[s-color=\"bd_white\"]"},{"*为.u-btn/.u-btn_il的附加样式":"[s-color=\"bd_yellow\"]"},{"*为.u-btn/.u-btn_il的附加样式":"[s-color=\"bd_red\"]"},{"*为.u-btn/.u-btn_il的附加样式":"[s-color=\"small\"]"},{"*为.u-btn/.u-btn_il的附加样式":"[s-color=\"medium\"]"},{"*为.u-btn/.u-btn_il的附加样式":"[s-color=\"big\"]"}]}]},{"name":"skin","children":[{"类/属性名":"[s-cr_red]","属性":"`color: #fe5d4e;`","说明":"字体颜色为红色","平台":"mobile/PC"},{"类/属性名":"[s-cr_green]","属性":"`color: #009801;`","说明":"字体颜色为绿色","平台":"mobile/PC"},{"类/属性名":"[s-cr_blue]","属性":"`color: #01a2fc;`","说明":"字体颜色为蓝色","平台":"mobile/PC"},{"类/属性名":"[s-cr_gray]","属性":"`color: #999;`","说明":"字体颜色为灰色","平台":"mobile/PC"},{"类/属性名":"[s-cr_white]","属性":"`color: #fff;`","说明":"字体颜色为白色","平台":"mobile/PC"},{"类/属性名":"[s-ft_base]","属性":"`color: #323232;`","说明":"字体颜色为文本基础颜色","平台":"mobile/PC"},{"类/属性名":"[s-ft_base_]","属性":"`color: #333;`","说明":"字体颜色为文本第二种基础颜色","平台":"mobile/PC"},{"类/属性名":"[s-ft_sub]","属性":"`color: #666;`","说明":"字体颜色为次文字颜色","平台":"mobile/PC"},{"类/属性名":"[s-ft_sub_]","属性":"`color: #999;`","说明":"字体颜色为第二种次文字颜色","平台":"mobile/PC"},{"类/属性名":"[s-bgc_red]","属性":"`background-color: #fe5d4e;`","说明":"背景颜色为红色","平台":"mobile/PC"},{"类/属性名":"[s-bgc_green]","属性":"`background-color: #009801;`","说明":"背景颜色为绿色","平台":"mobile/PC"},{"类/属性名":"[s-bgc_blue]","属性":"`background-color: #01a2fc;`","说明":"背景颜色为蓝色","平台":"mobile/PC"},{"类/属性名":"[s-bgc_gray]","属性":"`background-color: #999;`","说明":"背景颜色为灰色","平台":"mobile/PC"},{"类/属性名":"[s-bgc_white]","属性":"`background-color: #fff;`","说明":"背景颜色为白色","平台":"mobile/PC"}]},{"name":"status","children":[{"类/属性名":".z-hide","属性":"`display: none !important;`","说明":"元素隐藏,**最高优先级**","平台":"mobile/PC"},{"类/属性名":".z-v_hidden","属性":"`visibility: hidden;`","说明":"元素视觉隐藏","平台":"mobile/PC"},{"类/属性名":".z-v_visible","属性":"`visibility: visible;`","说明":"元素视觉显示","平台":"mobile/PC"},{"类/属性名":".z-hide_0","属性":"`opacity: 0;`","说明":"透明度为0","平台":"mobile/PC"},{"类/属性名":".z-hide_30","属性":"`opacity: 30;`","说明":"透明度为30%(PC带有filter:aplpha(opacity=透明度)兼容处理,下面的相同)","平台":"mobile/PC"},{"类/属性名":".z-hide_60","属性":"`opacity: 60;`","说明":"透明度为60%","平台":"mobile/PC"},{"类/属性名":".z-hide_90","属性":"`opacity: 90;`","说明":"透明度为90%","平台":"mobile/PC"},{"类/属性名":".z-index_","属性":"`z-index: -1;`","说明":"z轴层级为-1","平台":"mobile/PC"},{"类/属性名":".z-index_999","属性":"`z-index: 999;`","说明":"z轴层级为999","平台":"mobile/PC"}]}]}]}] \ No newline at end of file diff --git a/datas/regex.json b/datas/regex.json new file mode 100644 index 00000000..64c6d110 --- /dev/null +++ b/datas/regex.json @@ -0,0 +1,247 @@ +[{ + "id": "mail", + "name": "邮箱", + "description": "只允许英文字母、数字、下划线、英文句号、以及中划线组成", + "regexStr": "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$" + }, + { + "id": "phone", + "name": "手机号", + "description": "", + "regexStr": "^1(3|4|5|6|7|8|9)\\d{9}$" + }, + { + "id": "tel", + "name": "电话", + "description": "固定电话", + "regexStr": "(\\(\\d{3,4}\\)|\\d{3,4}-|\\s)?\\d{8}" + }, + { + "id": "url", + "name": "URL地址", + "description": "", + "regexStr": "^((http:\/\/)|(https:\/\/))?([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}(\/?)" + }, + { + "id": "ipv4", + "name": "IP", + "description": "符合IPV4", + "regexStr": "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" + }, + { + "id": "ipv6", + "name": "IP", + "description": "符合IPV6", + "regexStr": "^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$" + }, + { + "id": "userName", + "name": "用户名", + "description": "字母开头,允许5-16字节,允许字母数字下划线", + "regexStr": "^[a-zA-Z][a-zA-Z0-9_]{4,15}$" + }, + { + "id": "chinese", + "name": "中文", + "description": "", + "regexStr": "^[\u4e00-\u9fa5]{1,}$" + }, + { + "id": "Integer", + "name": "整数数字", + "description": "", + "regexStr": "^-?[1-9]\\d*$" + }, + { + "id": "PositiveInteger", + "name": "正整数数字", + "description": "", + "regexStr": "^[1-9]\\d*$" + }, + { + "id": "NegativeInteger", + "name": "负整数数字", + "description": "", + "regexStr": "^-[1-9]\\d*$" + }, + { + "id": "number4", + "name": "非负整数数字", + "description": "", + "regexStr": "^[1-9]\\d*|0$" + }, + { + "id": "number5", + "name": "非正整数数字", + "description": "", + "regexStr": "^-[1-9]\\d*|0$" + }, + { + "id": "Positivenumber", + "name": "零和正数", + "description": "", + "regexStr": "^\\d*\\.?\\d+$" + }, + { + "id": "Negativenumber", + "name": "负数", + "description": "", + "regexStr": "^-\\d*\\.?\\d+$" + }, + { + "id": "number6", + "name": "浮点数", + "description": "不能为整数", + "regexStr": "^-?([1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*|0?\\.0+|0)$" + }, + { + "id": "number7", + "name": "正浮点数", + "description": "不能为整数", + "regexStr": "^[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*$" + }, + { + "id": "number8", + "name": "负浮点数", + "description": "不能为整数", + "regexStr": "^-([1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*)$" + }, + { + "id": "number9", + "name": "非负浮点数", + "description": "不能为整数", + "regexStr": "^[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*|0?\\.0+|0$" + }, + { + "id": "number10", + "name": "非正浮点数", + "description": "不能为整数", + "regexStr": "^(-([1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*))|0?\\.0+|0$" + }, + { + "id": "englishAndNumber", + "name": "英文和数字", + "description": "", + "regexStr": "^[A-Za-z0-9]+$" + }, + { + "id": "englishAndNumberAndLine", + "name": "中文英文数字或下划线", + "description": "由中文、数字、26个英文字母或者下划线组成的字符串", + "regexStr": "^[\u4E00-\u9FA5A-Za-z0-9_]+$" + }, + { + "id": "chineseAndEnglishAndNumberAndLine", + "name": "中文英文数字或下划线", + "description": "中文、英文、数字包括下划线", + "regexStr": "^\\w+$" + }, + { + "id": "chineseAndEnglishAndNumberNotLine", + "name": "中文英文数字无符号", + "description": "中文、英文、数字但不包括下划线等符号", + "regexStr": "^[\u4E00-\u9FA5A-Za-z0-9]+$" + }, + { + "id": "lengthExample", + "name": "长度限制", + "description": "长度为6~8,任意字符", + "regexStr": "^.{6,8}$" + }, + { + "id": "english", + "name": "英文", + "description": "由26个英文字母组成的字符串", + "regexStr": "^[A-Za-z]+$" + }, + { + "id": "english2", + "name": "英文", + "description": "由26个大写英文字母组成的字符串", + "regexStr": "^[A-Z]+$" + }, + { + "id": "english3", + "name": "英文", + "description": "由26个小写英文字母组成的字符串", + "regexStr": "^[a-z]+$" + }, + { + "id": "noSymbol1", + "name": "禁止符号", + "description": "禁止输入含有%&\",;=?$\"等字符", + "regexStr": "[^%&\",;=?$\\x22]+" + }, + { + "id": "noWave", + "name": "禁止~符号", + "description": "禁止输入含有~的字符", + "regexStr": "[^~\\x22]+" + }, + { + "id": "dateFormat", + "name": "日期格式", + "description": "日期格式符合mm/dd/yyyy规范", + "regexStr": "^(0?[1-9]|[12][0-9]|3[01])([\/\\-])(0?[1-9]|1[012])\\2([0-9][0-9][0-9][0-9])(([-])([0-1]?[0-9]|2[0-3]):[0-5]?[0-9]:[0-5]?[0-9])?$" + }, + { + "id": "timeFormat", + "name": "时间格式hh:mm", + "description": "时间格式符合24小时格式规范", + "regexStr": "^([01]?[0-9]|2[0-3]):[0-5][0-9]$" + }, + { + "id": "md5", + "name": "MD5", + "description": "32位MD5字符串", + "regexStr": "^[a-f0-9]{32}$" + }, + { + "id": "base64", + "name": "BASE64", + "description": "BASE64字符串", + "regexStr": "^\\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\\-._~:@\/?%\\s]*?)\\s*$" + }, + { + "id": "hexColor", + "name": "十六进制颜色", + "description": "", + "regexStr": "^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$" + }, + { + "id": "video", + "name": "视频文件", + "description": "", + "regexStr": ".*?(?:swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4)$" + }, + { + "id": "image", + "name": "图片文件", + "description": "", + "regexStr": ".*?(?:gif|png|jpg|jpeg|webp|svg|psd|bmp|tif)$" + }, + { + "id": "newEnergyLicense", + "name": "新能源车牌", + "description": "", + "regexStr": "[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领 A-Z]{1}[A-HJ-NP-Z]{1}(([0-9]{5}[DF])|([DF][A-HJ-NP-Z0-9][0-9]{4}))$" + }, + { + "id": "license", + "name": "普通车牌", + "description": "新能源车+非新能源车", + "regexStr": "^(?:[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领 A-Z]{1}[A-HJ-NP-Z]{1}(?:(?:[0-9]{5}[DF])|(?:[DF](?:[A-HJ-NP-Z0-9])[0-9]{4})))|(?:[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领 A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9 挂学警港澳]{1})$" + }, + { + "id": "A-SHARE", + "name": "股票-A股", + "description": "股票代码", + "regexStr": "^(s[hz]|S[HZ])(000[\\d]{3}|002[\\d]{3}|300[\\d]{3}|600[\\d]{3}|60[\\d]{4})$" + }, + { + "id": "wechatId", + "name": "微信号", + "description": "", + "regexStr": "^[a-zA-Z][-_a-zA-Z0-9]{5,19}$" + } +] \ No newline at end of file diff --git a/datas/tools.json b/datas/tools.json new file mode 100644 index 00000000..f11bde72 --- /dev/null +++ b/datas/tools.json @@ -0,0 +1 @@ +[{"name":"常用网站","children":[{"name":"HTML/CSS/JavaScript/WASM/Dart","children":[{"name":"MDN 文档手册","desc":"Mozilla出品的一个很全很有用的前端查询/学习网站。","link":"https://developer.mozilla.org/zh-CN/docs/Web","target":["html","css","js"]},{"name":"MDN AI助手","desc":"基于gpt3.5的MDN文档问答机器人。","link":"https://developer.mozilla.org/en-US/plus/ai-help","target":["html","css","js"]},{"name":"W3C官网","desc":"W3C官方标准。","link":"https://www.w3.org/","target":["html","css","js"]},{"name":"W3C学习网站","desc":"W3C School,国际热门的web开发学习网站,适合入门。","link":"https://www.w3schools.com/","target":["w3cshool"]},{"name":"W3C CSS","desc":"W3C CSS规范文档。","link":"https://www.w3.org/Style/CSS/","target":["w3c-css"]},{"name":"css属性参考手册","desc":"快速查询css属性及基本使用。","link":"https://www.runoob.com/cssref/css-reference.html","target":["css"]},{"name":"canvas api速查手册","desc":"canvas API方法集合。","link":"https://www.canvasapi.cn/","target":["canvas"]},{"name":"W3C官网-SVG","desc":"W3C官网,SVG文档(左侧RECOMMENDATIONS)。","link":"https://www.w3.org/Graphics/SVG/","target":["svg"]},{"name":"VML 参考手册","desc":"*早期(如果你仍要兼容IE6/7)微软开发的在低端IE上运行的图形绘制DSL、类似“SVG”。","link":"http://www.t086.com/code/vml/","target":["VML(IE)"]},{"name":"TypeScript官方手册","desc":"TypeScript官方手册。","link":"https://www.typescriptlang.org/docs/handbook/intro.html","target":["typescript"]},{"name":"TypeScript Challenges","desc":"TypeScript Challenges,在线学习/检验自己的ts类型编程水平。","link":"https://github.com/type-challenges/type-challenges","target":["ts-challenges"]},{"name":"ECMA standards ","desc":"ECMAScript 协议标准。","link":"https://www.ecma-international.org/publications-and-standards/standards/","target":["ecma"]},{"name":"ECMA International(6)","desc":"ECMAScript6官方文档。","link":"https://www.ecma-international.org/ecma-262/6.0/","target":["ES6"]},{"name":"ECMA International(6) 汉化 ","desc":"ECMAScript6官方文档的中文翻译版(只有少部分且挺久没更新了)。","link":"https://ecma262.docschina.org/","target":["ES6"]},{"name":"ECMA6 features ","desc":"通俗易懂的ECMAScript6特性demos。","link":"http://es6-features.org/","target":["ES6"]},{"name":"ES6入门(阮一峰)","desc":"国内使用频率最高的ECMAScript6文档,特别适合新手。","link":"https://es6.ruanyifeng.com/","target":["ES6"]},{"name":"Web API Reference","desc":"HTML5 web API查询,如摄像头/地理位置。","link":"http://www.html5plus.org/doc/h5p.html","target":["html5"]},{"name":"Safari HTML Ref查询","desc":"Safari webview的HTML标签查询,用于移动web开发,比如某些iOS特殊的属性或表现可以查这个。","link":"https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/Attributes.html#//apple_ref/doc/uid/TP40008058-autocorrect","target":["html"]},{"name":"WebKit 特性状态查询","desc":"WebKit 官网文档,js/css特性状态支持情况查询。","link":"https://webkit.org/status/","target":["webkit"]},{"name":"Dart官网","desc":"dart语言英文官网。","link":"https://dart.dev/","target":["dart"]},{"name":"Dart中文网","desc":"dart语言中文学习网。","link":"https://www.dartcn.com/guides/language/language-tour","target":["dart"]},{"name":"RFC规范官网","desc":"RFC协议官网,可查询HTTP协议等内容。","link":"https://www.rfc-editor.org/","target":["rfc","http"]},{"name":"Media Types","desc":"媒体类型列表,MIME。","link":"https://www.iana.org/assignments/media-types/media-types.xhtml","target":["MIME"]},{"name":"Web Assembly官网","desc":"Web Assembly(wasm)英文官网。","link":"https://webassembly.org/","target":["wasm"]},{"name":"Web Assembly中文网","desc":"Web Assembly(wasm)中文网。","link":"https://www.wasm.com.cn/","target":["wasm"]},{"name":"Krustlet 官网","desc":"一款 Web Assembly 框架。","link":"https://docs.krustlet.dev/","target":["krustlet"]}]},{"name":"兼容/查询","children":[{"name":"can i use","desc":"使用频率最高的兼容支持查询网站。","link":"https://caniuse.com/","target":["caniuse"]},{"name":"ES兼容查询","desc":"ECMAScript兼容查询。","link":"https://github.com/compat-table/compat-table","target":["js"]},{"name":"微信小程序ES兼容查询","desc":"微信小程序ES api及对应小程序环境版本兼容查询。","link":"https://wechat-miniprogram.github.io/miniprogram-compat/","target":["weapp"]},{"name":"iOS字体","desc":"iOS系统自带字体支持情况查询。","link":"http://iosfonts.com/","target":["ios font"]},{"name":"Web安全色查询","desc":"*为了尽量让用户看到色彩相同的网页,请尽量使用216色的web安全色。","link":"https://www.bootcss.com/p/websafecolors/","target":["web color"]},{"name":"StatCounter浏览器份额统计","desc":"*StatCounter的浏览器统计报表","link":"https://gs.statcounter.com/","target":["statcounter"]},{"name":"浏览器份额统计","desc":"*百度统计的市面上浏览器/app份额(现在已经没有了,只剩百度统计产品)。","link":"http://tongji.baidu.com/data/browser","target":["browser"]}]},{"name":"CSS工具","children":[{"name":"预处理","children":[{"name":"less文档","desc":"易上手的CSS预处理工具。","link":"https://lesscss.org/","target":["less"]},{"name":"sass 文档","desc":"热门的CSS预处理工具。","link":"https://sass-guidelin.es/zh/","target":["sass"]},{"name":"stylus 文档","desc":"功能丰富的CSS预处理工具。","link":"http://stylus-lang.com/","target":["stylus"]},{"name":"stylus 文档(张旭鑫)","desc":"stylus中文文档。","link":"http://www.zhangxinxu.com/jq/stylus/","target":["stylus"]},{"name":"Assembler CSS 文档","desc":"Assembler CSS 官方文档,Just-in-time。","link":"https://asmcss.com/","target":["asmcss"]}]},{"name":"后处理","children":[{"name":"postcss 文档","desc":"被广泛运用的CSS后处理工具。","link":"http://api.postcss.org/","target":["postcss"]},{"name":"postcss 插件","desc":"post插件库中心。","link":"https://github.com/postcss/postcss","target":["postcss"]},{"name":"autoprefixer","desc":"自动补充浏CSS前缀的后处理工具。","link":"https://github.com/postcss/autoprefixer","target":["autoprefixer"]},{"name":"cssnano官网","desc":"CSS优化和分解插件。","link":"https://cssnano.co/","target":["cssnano"]},{"name":"postcss-plugin-px2rem","desc":"将px单位转为rem单位的工具。","link":"https://www.npmjs.com/package/postcss-plugin-px2rem","target":["px2rem"]},{"name":"postcss-px-to-viewport","desc":"将px单位转为vw单位的工具。","link":"https://www.npmjs.com/package/postcss-px-to-viewport","target":["px2vw"]},{"name":"cssnext官网","desc":"让今天的我们写着明天的CSS特性。","link":"https://cssnext.github.io/","target":["cssnext"]}]},{"name":"样式库/模块","children":[{"name":"30s-of-code(css)","desc":"常用CSS样式模块集合,30s of code系列。","link":"https://css.30secondsofcode.org/","target":["30s-of-code(css)"]},{"name":"animate.css","desc":"CSS3动画库。","link":"https://daneden.github.io/animate.css/","target":["bulma.css"]},{"name":"Hover.css","desc":"PC鼠标hover交互动画库。","link":"http://ianlunn.github.io/Hover/","target":["Hover.css"]},{"name":"bulma.css","desc":"一款轻量级的CSS UI库。","link":"https://bulma.io/","target":["bulma.css"]},{"name":"cardinal.css","desc":"一款移动优先的less库。","link":"http://cardinalcss.com/","target":["cardinal.css"]},{"name":"bootflat.css","desc":"一款扁平化风格scss库,基于BootStrap3.3。","link":"http://bootflat.github.io/index.html","target":["bootflat.css"]},{"name":"corpus.css","desc":"一款scss集合库。","link":"https://jamiewilson.io/corpus/","target":["corpus.css"]},{"name":"weui","desc":"微信风格的样式库,腾讯。","link":"https://github.com/Tencent/weui","target":["weui"]},{"name":"materialize.css","desc":"Material风格的响应式前端样式框架。","link":"http://www.materializecss.cn/","target":["materializecss"]},{"name":"mui.css","desc":"Material风格的轻量级前端样式框架。","link":"https://www.muicss.com","target":["MUI"]},{"name":"Metro UI","desc":"一款流行的响应式前端样式框架,[React版](https://react.metroui.org.ua/)。","link":"https://metroui.org.ua/","target":["Metro UI"]},{"name":"NES.css","desc":"游戏机像素风格的前端样式框架。","link":"https://nostalgic-css.github.io/NES.css/","target":["NES.css"]},{"name":"paper.css","desc":"手绘风格的前端样式框架。","link":"https://www.getpapercss.com","target":["paper.css"]},{"name":"css3 icon","desc":"纯CSS实现的图标。","link":"http://www.uiplayground.in/css3-icons/","target":["css3 icon"]},{"name":"Bootstrap 文档","desc":"红极一时的响应式前端样式框架。","link":"http://bootstrap.css88.com/css/","target":["bootstrap"]},{"name":"layui 文档","desc":"一款采用自身模块规范编写的前端 UI 框架。","link":"https://www.layui.com/doc/","target":["layui"]},{"name":"fontawesome","desc":"字体图标库。","link":"https://fontawesome.com/","target":["fontawesome"]},{"name":"iconfont","desc":"字体图标库,阿里。","link":"https://www.iconfont.cn/","target":["iconfont"]},{"name":"normalize","desc":"相对较优的CSS reset替代方案。","link":"http://necolas.github.io/normalize.css/","target":["normalize"]},{"name":"Tailwind官网","desc":"模块化的UI库。","link":"https://tailwindcss.com/","target":["tailwind"]},{"name":"Unocss官网","desc":"原子、按需的css模块化引擎、有借鉴tailwind。","link":"https://unocss.dev/","target":["unocss"]}]},{"name":"其他","children":[{"name":"css tricks","desc":"包括布局、图标、动画等CSS技巧。","link":"https://qishaoxuan.github.io/css_tricks/","target":["css tricks"]},{"name":"BEM","desc":"BEM写法规范。","link":"https://en.bem.info/methodology/quick-start/","target":["bem"]},{"name":"ACSS","desc":"Atomic CSS,一种模块化写法规范。","link":"https://acss.io/","target":["acss"]},{"name":"IT.css","desc":"IT CSS,一种组件化写法规范。","link":"https://csswizardry.net/talks/2014/11/itcss-dafed.pdf","target":["itcss"]},{"name":"CSS modules","desc":"一种CSS样式模块化的解决方案。","link":"https://glenmaddern.com/articles/css-modules","target":["css-modules"]},{"name":"css in js","desc":"用写js的方式生成css样式。","link":"https://github.com/MicheleBertoli/css-in-js","target":["css-in-js"]},{"name":"Moo-CSS","desc":"一种CSS写法方案。","link":"http://blog.michealwayne.cn/Moo-CSS/docs/moocss/#m%E6%A8%A1%E5%9D%97","target":["moo-css"]},{"name":"CSS tricks for web developers","desc":"CSS技巧集合。","link":"https://github.com/l-hammer/You-need-to-know-css","target":["You-need-to-know-css"]},{"name":" logotyp.us ","desc":"国内外知名企业/商业的logo集合。","link":"https://logotyp.us/","target":["logotyp"]}]}]},{"name":"JS插件/库","children":[{"name":"库","children":[{"name":"LoDash","desc":"广为人知的函数式工具库。","link":"https://lodash.com/docs/","target":["lodash"]},{"name":"ramda","desc":"比较著名的函数式工具库。","link":"https://github.com/ramda/ramda","target":["ramda"]},{"name":"fp-ts","desc":"遵循函数式编程范式的ts封装库。","link":"https://gcanti.github.io/fp-ts/","target":["fp-ts"]},{"name":"radash","desc":"ts函数式工具库。","link":"https://github.com/rayepps/radash","target":["radash"]},{"name":"UnderscoreJS","desc":"红极一时的函数式工具库。","link":"https://underscorejs.org/","target":["underscorejs"]},{"name":"jQueryJs","desc":"早年红极一时的js封装库。","link":"http://www.css88.com/jqapi-1.9/","target":["jQuery"]},{"name":"ZeptoJs","desc":"轻量级“jQuery”,移动端使用的比较多。","link":"http://www.css88.com/doc/zeptojs_api/","target":["Zepto"]},{"name":"city.js","desc":"全国行政区划分数据文件。","link":"https://github.com/basecss/city","target":["city"]},{"name":"phaser.js","desc":"2D游戏前端库。","link":"http://phaser.io/","target":["phaser"]},{"name":"fabric.js","desc":"有名的svg和canvas相互转换的封装库。","link":"http://fabricjs.com/","target":["fabricjs"]},{"name":"babylon.js","desc":"有名的3D游戏/视频框架。","link":"https://www.babylonjs.com/","target":["babylonjs"]},{"name":"immutable-js","desc":"生产环境js的List, Stack, Map, OrderedMap, Set, OrderedSet以及Record数据结构支持,通常用于ReactJs。","link":"https://immutable-js.github.io/immutable-js/","target":["immutable"]},{"name":"GCanvas","desc":"轻量的跨平台图形引擎(web/weex/react-native),阿里。","link":"https://github.com/alibaba/GCanvas","target":["gcanvas"]},{"name":"core-decorators","desc":"丰富的装饰器封装库,基于ES2016/2017的装饰器语法。","link":"https://github.com/jayphelps/core-decorators","target":["core-decorators"]},{"name":"http-status-codes","desc":"枚举 HTTP 状态代码的常量。支持 RFC1945(HTTP/1.0、RFC2616 (HTTP/1.1) 和 RFC2518 (WebDAV))中定义的所有状态代码。常用于ajax请求处理,ts。","link":"https://github.com/prettymuchbryce/http-status-codes","target":["http-status-codes"]},{"name":"Zodjs","desc":"以 TypeScript 为首的模式声明和验证库,可用于数字格式校验及生成ts声明。","link":"https://zod.dev/README_ZH","target":["zod"]},{"name":"ts2dart","desc":"一款 TypeScript 转 Dart 语言的工具库(会存在一些问题),有挺多年没维护了。","link":"https://github.com/dart-archive/ts2dart","target":["ts2dart"]},{"name":" InversifyJS ","desc":"一款 js/ts IoC的封装库。","link":"https://github.com/inversify/InversifyJS","target":["inversify"]},{"name":" BottleJs ","desc":"一轻量 js/ts 依赖注入容器库。特点是延迟加载。","link":"https://github.com/young-steveo/bottlejs","target":["bottlejs "]}]},{"name":"数据工具","children":[{"name":"stdlib","desc":"js的数学增强库。","link":"https://stdlib.io/","target":["stdlib"]},{"name":"StreamJs","desc":"一款js数据的操作工具。","link":"http://winterbe.github.io/streamjs/","target":["streamjs"]},{"name":"BaconJs","desc":"也是一款js数据的操作工具。","link":"https://baconjs.github.io/","target":["baconjs"]},{"name":"Date fns","desc":"一款模块化支持按需的日期格式化工具。","link":"https://date-fns.org/","target":["date-fns"]},{"name":"DayJs","desc":"一款日期格式化的工具,轻量,MomentJS的替代品。","link":"https://day.js.org/","target":["dayjs"]},{"name":"MomentJs","desc":"一款日期格式化的工具(2020开始停止维护)。","link":"https://momentjs.com/","target":["momentjs"]},{"name":"numbro","desc":"一款多国语言的数字转化工具。","link":"http://numbrojs.com/","target":["numbrojs"]},{"name":" NumeralJs","desc":"用于格式化和操作数字的 js 库。","link":"http://numeraljs.com/","target":["numeraljs"]},{"name":"accounting.js","desc":"数字,金钱的格式化工具。","link":"http://openexchangerates.github.io/accounting.js/","target":["accounting.js"]},{"name":"money.js","desc":"金钱的汇率转换工具。","link":"http://openexchangerates.github.io/money.js/","target":["money.js"]},{"name":"decimal.js","desc":"Js精度处理库。","link":"https://github.com/MikeMcl/decimal.js#readme","target":["decimal.js"]}]},{"name":"请求、cookie和缓存","children":[{"name":"axios","desc":"高频使用的ajax库。","link":"https://github.com/axios/axios","target":["axios"]},{"name":"fetch","desc":"Fetch API的兼容polyfill。","link":"https://github.com/github/fetch","target":["fetch"]},{"name":"jsonp","desc":"不用多说,实现jsonp。(axios没有封装jsonp)","link":"https://github.com/webmodules/jsonp","target":["jsonp"]},{"name":"URI.js","desc":"URI解析操作的库。","link":"http://medialize.github.io/URI.js/","target":["uri"]},{"name":"StoreJs","desc":"storage的封装库,兼容IE6。","link":"https://github.com/marcuswestin/store.js/","target":["storage"]},{"name":"js-cookie","desc":"cookie的封装库。","link":"https://github.com/js-cookie/js-cookie","target":["js-cookie"]},{"name":"Dexie.js","desc":"IndexedDB的封装库。","link":"https://dexie.org/","target":["dexiejs"]},{"name":"localForage.js","desc":"基于IndexedDB、WebSQL、localStorage的离线存储库,Mozilla。","link":"https://localforage.github.io/localForage/","target":["localForage"]},{"name":"basket.js","desc":"利用localStorage来缓存script和css资源。","link":"https://addyosmani.com/basket.js/","target":["basket.js"]}]},{"name":"插件","children":[{"name":"swiper.js","desc":"轮播插件。","link":"https://www.swiper.com.cn/","target":["swiper"]},{"name":"nanobar.js","desc":"绚丽的进度条展示插件,IE7+。","link":"https://github.com/jacoborus/nanobar/","target":["nanobar"]},{"name":"sweetalert","desc":"效果不错的PC alert展示插件。","link":"https://sweetalert.js.org/","target":["sweetalertjs"]},{"name":"bowserjs","desc":"通过ua做的浏览器探测插件。","link":"https://github.com/lancedikson/bowser","target":["bowserjs"]},{"name":"clipboard.js","desc":"剪贴板控制插件。","link":"https://clipboardjs.com/","target":["clipboardjs"]},{"name":"Qrcode-generator","desc":"二维码生成工具。","link":"https://github.com/kazuhikoarase/qrcode-generator/tree/master/js","target":["grcode-generator"]},{"name":"html2canvas","desc":"html转为图片(canvas),即实现网页截图。","link":"http://html2canvas.hertzen.com/documentation","target":["html2canvas"]},{"name":"rrweb","desc":"基于样式截取的网页“录屏”工具,实现用户操作采集和回放。","link":"https://www.rrweb.io/","target":["rrweb "]},{"name":"Pen Editor","desc":"web的文本编辑工具。","link":"https://github.com/sofish/pen#readme","target":["Pen Editor"]},{"name":"cleave.js","desc":"一款好用的input输入控制插件。","link":"https://nosir.github.io/cleave.js/","target":["cleave.js"]},{"name":"autosize.js","desc":"一款好用的`