# JavaScript框架
# Flag
- https://github.com/angular/angular (opens new window)
- https://github.com/angular/angular.js (opens new window)
- https://github.com/emberjs (opens new window)
- https://github.com/BuilderIO/qwik (opens new window)
- https://github.com/alpinejs/alpine (opens new window)
- https://github.com/litejs/litejs (opens new window)
- https://github.com/riot (opens new window)
- https://github.com/h5bp/html5-boilerplate (opens new window)
- https://github.com/zdhxiong/mdui (opens new window)
- https://github.com/baidu/amis (opens new window)
- https://github.com/alienzhou/web-highlighter (opens new window)
- https://github.com/jashkenas/backbone (opens new window)
- https://github.com/horizon-ui/horizon-ui-chakra (opens new window)
- https://github.com/withastro/astro (opens new window)
- https://github.com/micro-zoe/micro-app (opens new window)
- https://github.com/surveyjs (opens new window)
- https://github.com/honojs/hono (opens new window)
- https://github.com/elysiajs/elysia (opens new window)
- WEB组件 https://github.com/ing-bank/lion (opens new window)
- https://github.com/open-wc/open-wc (opens new window)
- https://github.com/modernweb-dev/web (opens new window)
- https://github.com/lit (opens new window)
- https://github.com/denoland/fresh (opens new window)
- https://github.com/QwikDev/qwik (opens new window)
- https://github.com/solidjs/solid (opens new window)
- https://github.com/preactjs/preact (opens new window)
- 单页网站 https://github.com/alvarotrigo/fullPage.js (opens new window)
- http://www.jeasyui.com (opens new window)
- https://github.com/visjs (opens new window)
- https://github.com/nuejs/nuejs (opens new window)
- 响应式框架 https://github.com/foundation (opens new window)
- https://github.com/jorgebucaran/hyperapp (opens new window)
- https://github.com/umijs (opens new window)
- Serverless https://github.com/midwayjs (opens new window)
- https://github.com/modern-js-dev (opens new window)
- 游戏 https://github.com/4ian/GDevelop (opens new window)
- 框架环境 https://github.com/meteor (opens new window)
- 仪表盘 https://github.com/keen/dashboards (opens new window)
- https://github.com/Smashing/smashing (opens new window)
- https://github.com/storybookjs (opens new window)
- https://github.com/redwoodjs (opens new window)
- 数据获取 https://github.com/tanstack/query (opens new window)
- 测试 https://github.com/karma-runner/karma (opens new window)
- https://github.com/qunitjs (opens new window)
- https://github.com/jasmine/jasmine (opens new window)
- https://github.com/dequelabs/axe-core (opens new window)
# React
- https://github.com/facebook/react (opens new window)
- https://github.com/reactjs (opens new window)
- https://github.com/reactwg (opens new window)
- https://github.com/vercel/next.js (opens new window)
- https://github.com/reduxjs (opens new window)
- https://github.com/onejs/one (opens new window)
- 状态管理 https://github.com/pmndrs/valtio (opens new window)
- https://github.com/facebookexperimental/Recoil (opens new window)
- https://github.com/pulse-framework/pulse (opens new window)
- https://github.com/softchris/react-book (opens new window)
- https://github.com/react-hook-form (opens new window)
- https://github.com/gajus/babel-plugin-react-css-modules (opens new window)
- https://github.com/styled-components/styled-components (opens new window)
- https://github.com/emotion-js/emotion (opens new window)
- https://github.com/gatsbyjs/gatsby (opens new window)
- https://github.com/streamich/react-use (opens new window)
- https://github.com/reacttips-dev/codebases (opens new window)
- https://github.com/refinedev (opens new window)
- https://github.com/mui-org/material-ui (opens new window)
- https://github.com/ant-design/ant-design (opens new window)
- https://github.com/DouyinFE/semi-design (opens new window)
- https://github.com/nextui-org/nextui (opens new window)
- https://github.com/scratchfoundation/scratch-gui (opens new window)
- https://github.com/uiwjs/uiw (opens new window)
- https://github.com/alibaba/ice (opens new window)
- https://github.com/tannerlinsley/react-query (opens new window)
- https://github.com/Shopify/hydrogen (opens new window)
- https://github.com/alan2207/bulletproof-react (opens new window)
- https://github.com/lyh0371/vv-react-table (opens new window)
- https://github.com/rsuite/rsuite-table (opens new window)
- https://github.com/reach/reach-ui (opens new window)
- https://github.com/YYsuni/react18-json-view (opens new window)
- https://github.com/wasp-lang/wasp (opens new window)
- 表格 https://github.com/iddan/react-spreadsheet (opens new window)
- https://github.com/react-csv (opens new window)
- https://github.com/silevis/reactgrid (opens new window)
- 测试 https://github.com/testing-library (opens new window)
- 服务器组件 https://github.com/dai-shi/waku (opens new window)
- 画板 https://github.com/tldraw/tldraw (opens new window)
- SSR(服务端渲染)框架 https://github.com/childrentime/pareto (opens new window)
- 视频编辑 https://github.com/redotvideo/revideo (opens new window)
# VueJS
- https://github.com/vuejs (opens new window)
- https://github.com/x-extends (opens new window)
- vue学习笔记 (opens new window)
- https://github.com/PanJiaChen/vue-element-admin (opens new window)
- 3D可视化 https://github.com/hawk86104/icegl-three-vue-tres (opens new window)
# VueJS框架
- https://github.com/nuxt (opens new window)
- https://madewithvuejs.com (opens new window)
- https://github.com/vuetifyjs/vuetify (opens new window)
- https://github.com/buefy/buefy (opens new window)
- https://github.com/bootstrap-vue/bootstrap-vue (opens new window)
- https://github.com/vuematerial/vue-material (opens new window)
- https://github.com/uikit/uikit (opens new window)
- https://github.com/quasarframework (opens new window)
- https://github.com/TuSimple/naive-ui (opens new window)
- https://github.com/epicmaxco/vuestic-ui (opens new window)
- https://github.com/sdc-alibaba/sui (opens new window)
- https://github.com/FE-Driver/vue-beauty (opens new window)
- https://github.com/chenz24/vue-blu (opens new window)
- https://github.com/heyui/heyui (opens new window)
- https://github.com/at-ui/at-ui (opens new window)
- https://github.com/view-design/ViewUI (opens new window)
- https://github.com/ElemeFE/element (opens new window)
- https://github.com/mint-ui (opens new window)
- https://github.com/varletjs/varlet (opens new window)
- https://github.com/ElementUI (opens new window)
- https://github.com/element-plus/element-plus (opens new window)
- https://github.com/opentiny/tiny-vue (opens new window)
- https://github.com/gridsome/gridsome (opens new window)
- https://github.com/cherryful/unocss-ui (opens new window)
- https://github.com/v-vibe/vue-styled-components (opens new window)
插件/组件
- https://github.com/TerryZ/vue-plugins (opens new window)
- 动态表单生成 https://github.com/xaboy/form-create (opens new window)
- https://github.com/dev-zl/vccvalidate (opens new window)
- https://github.com/ferrinweb/vue-scroll-box (opens new window)
- https://github.com/kazupon/vue-i18n (opens new window)
- 表格 https://github.com/handsontable (opens new window)
- https://github.com/nathantsoi/vue-native-websocket (opens new window)
- JSON生成SQL https://github.com/liyupi/sql-generator (opens new window)
- 验证 https://github.com/logaretm/vee-validate (opens new window)
- 图片编辑器 https://github.com/nihaojob/vue-fabric-editor (opens new window)
Mobile
- https://github.com/airyland/vux (opens new window)
- https://github.com/sdc-alibaba/SUI-Mobile (opens new window)
- https://github.com/ElemeFE/mint-ui (opens new window)
- https://github.com/didi/cube-ui (opens new window)
项目
- https://github.com/zhontai/Admin.UI (opens new window)
- https://github.com/HalseySpicy/Geeker-Admin (opens new window)
- https://github.com/pure-admin/vue-pure-admin (opens new window)
- 扫描PDF https://github.com/rwv/lookscanned.io (opens new window)
# 动态导入组件
() => import(`@${_this.files.path}.vue`)
//component(resolve) {require([`@${_this.files.path}.vue`], resolve)}
resolve => require([`@${_this.files.path}.vue`], resolve)
resolve => require.ensure([], () => resolve(require(`@${_this.files.path}.vue`)))
const resolveRequire = (path) => {
return resolve => {
require.ensure([], (require) => {
resolve(require(`@${path}.vue`));
});
}
}
# jQuery
- https://github.com/jquery (opens new window)
- https://github.com/topics/jquery (opens new window)
- https://github.com/topics/jquery-plugin (opens new window)
- https://jquery.cuishifeng.cn (opens new window)
- https://www.jquery123.com (opens new window)
- https://github.com/JsAaron/jQuery (opens new window)
// 扩展jQuery实例函数
jQuery.fn.extend({
/**
* 交换任意两个jQuery对象的位置
* @param another
*/
swap: function(another){
var me = this;
var cloneMe = me.clone();
var temp = $('<span/>');
another.before(temp);
me.replaceWith(another);
temp.replaceWith(cloneMe);
return this;
}
});
/* ***调用举例*** */
var $t1 = $("#t1");
var $t2 = $("#t2");
$t1.swap($t2);
// 扩展jQuery实例函数
jQuery.fn.extend({
/**
* 在同辈元素中向上或向下移动
* @param direction 'up'或'down'
*/
move: function(direction){
var me = this;
var another = null;
if(direction == 'up'){
another = me.prev();
another.before(me);
}else if(direction == 'down'){
another = me.next();
another.after(me);
}
return this;
}
});
/* *** 调用举例 ***/
var $p = $('p#id_2');
var success = $p.move('up'); //移动成功则为true,否则false
// 原生JS DOM里有一个内置属性outerHTML,用来获取当前节点的html代码(包含当前节点本身)
$(".test").prop("outerHTML");
// Jquery设置outerHTML
$('.test').prop('outerHTML', '<div>');
attr()
和prop()
的区别
attr()
方法设置或返回被选元素的属性值
。attribute
是HTML
标签上的特性(属性),它的值只能够是字符串;prop()
方法设置或返回被选元素的属性和值
。property
是DOM
中的属性,是JavaScript
里的对象;
官方建议具有
true
或false
两个值的属性,如checked
、selected
、disabled
应同时使用prop()
和attr()
$.attr("checked", "true");
$.attr("checked", true);
$.attr("checked", "checked");
$.attr("checked", "false"); // 不会生效
$.attr("checked", false);
$.removeAttr("checked");
// 只使用prop的情况下,可以看到标签元素上没有checked属性,但页面有渲染动作
$.prop("checked", "true");
$.prop("checked", true);
$.prop("checked", "checked");
$.prop("checked", "false"); // 不会生效
$.prop("checked", false);
$.removeProp("checked");
$.attr("checked"); // 1.6+返回"checked"或"undefined";1.5-返回 true或false
$.prop("checked"); // 1.6+返回 true/false
$.is(":checked");
readonly
属性对radio
、select
、checkbox
这三个表单无效,设置disabled
属性后,读取不到值
- 把表单值存入
<input type="hidden" >
中,如果代码中要改变选中则同时要赋值给该输入框 - 提交表单前先移除
disabled
属性,不提交表单时或提交表单后设置disabled
属性(代码中要改变选中前先移除disabled
属性) - 只设置没有选中的input框
disabled
属性 (代码中要改变选中时先移除disabled
属性)
根据文本获取元素
$.fn.findByContentText = function (text) {
return $(this).contents().filter(function () {
return $(this).text().trim() == text.trim();
});
};
var search = $( "ul li label" ).filter( function () {
return $( this ).text().toLowerCase().indexOf( "text".toLowerCase() ) >= 0;
}).first(); // .last()
$('div:contains("test"):not(:has(*)):last').css('background-color', 'red');
# jQuery插件/组件
- https://github.com/topics/validation (opens new window)
- https://github.com/topics/validator (opens new window)
- https://plugins.jquery.com (opens new window)
- 添加XHR2 responseType支持 https://github.com/acigna/jquery-ajax-native (opens new window)
- https://github.com/topics/jquery-validation (opens new window)
- 表格 https://github.com/tonytomov/jqGrid (opens new window)
- https://github.com/DataTables/DataTables (opens new window)
- https://github.com/malihu/malihu-custom-scrollbar-plugin (opens new window)
- https://github.com/rochal/jQuery-slimScroll (opens new window)
- 提示 https://github.com/calebjacob/tooltipster (opens new window)
- https://github.com/devbridge/jQuery-Autocomplete (opens new window)
- https://github.com/rampatra/animatescroll.js (opens new window)
- https://github.com/wmh/jquery-scrollbox (opens new window)
- https://github.com/omcg33/jquery.limarquee (opens new window)
- https://github.com/kamranahmedse/jquery-toast-plugin (opens new window)
- 分页 https://github.com/superRaytin/paginationjs (opens new window)
- 视频播放 https://github.com/jplayer/jPlayer (opens new window)
- https://github.com/davatron5000/FitVids.js (opens new window)
- 弹幕 https://github.com/chiruom/jquery.danmu.js (opens new window)
- https://github.com/jeromeetienne/jquery-qrcode (opens new window)
- https://github.com/jquery-i18n-properties/jquery-i18n-properties (opens new window)
- 使用旧版IE警报 https://github.com/nmsdvid/ie-alert (opens new window)
- 图像放大镜 https://github.com/mrenzidev/jqzoom (opens new window)
- 文件上传 https://github.com/kartik-v/bootstrap-fileinput (opens new window)
- https://github.com/jquery-form/form (opens new window)
https://github.com/FineUploader/fine-uploader (opens new window)- 下拉选择框 https://github.com/snapappointments/bootstrap-select (opens new window)
- https://github.com/davidstutz/bootstrap-multiselect (opens new window)
- https://github.com/selectize/selectize.js (opens new window)
- https://github.com/select2/select2 (opens new window)
- https://github.com/wenzhixin/multiple-select (opens new window)
- https://github.com/ciaoca/cxSelect (opens new window)
- https://github.com/Eonasdan/tempus-dominus (opens new window)
- https://github.com/harvesthq/chosen (opens new window)
- https://github.com/Robdel12/DropKick (opens new window)
- https://github.com/lou/multi-select (opens new window)
- https://github.com/gfranko/jquery.selectBoxIt.js (opens new window)
- https://github.com/harvesthq/chosen (opens new window)
- 模态框 https://github.com/kylefox/jquery-modal (opens new window)
- https://github.com/layui/layui (opens new window)
- https://github.com/maxazan/jquery-treegrid (opens new window)
- 日期和时间选择器 https://github.com/xdan/datetimepicker (opens new window)
- UI https://github.com/IgniteUI/ignite-ui (opens new window)
- https://github.com/madrobby/zepto (opens new window)
- https://github.com/ded/script.js (opens new window)
- https://github.com/malsup/blockui (opens new window)
- https://github.com/onokumus/metisMenu (opens new window)
# 事件点击一次执行多次
// 先移除再绑定,jQuery 3.0中已弃用此方法
$('#id').unbind('click').on('click',function(){
consoel.log("ok");
});
// 先移除再绑定
$("#id").off("click").on("click",function(){
consoel.log("ok");
});
# Bootstrap
- https://github.com/topics/bootstrap (opens new window)
- https://github.com/twbs/bootstrap (opens new window)
- https://github.com/fastbootstrap/atlassian-design-for-bootstrap (opens new window)
- https://github.com/jquery/jquery-ui (opens new window)
- 颜色选择器 https://github.com/itsjavi/bootstrap-colorpicker (opens new window)
- https://github.com/wenzhixin/bootstrap-table (opens new window)
- 编辑器 https://github.com/vitalets/x-editable (opens new window)
- https://github.com/vinorodrigues/bootstrap-dark (opens new window)
- https://github.com/yuantuo666/bootstrap-dark (opens new window)
- https://github.com/themefisher (opens new window)
- https://github.com/keaukraine/bootstrap4-fs-modal (opens new window)
- 仪表板 https://github.com/tabler/tabler (opens new window)