From 9a4a31e52eb09f0bc042fc0e0213dd957915706e Mon Sep 17 00:00:00 2001 From: ForeverSmiYng Date: Sat, 22 Jun 2024 16:23:39 +0800 Subject: [PATCH] 'test' --- JavaScript经验总结.html | 1065 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 1065 insertions(+) create mode 100644 JavaScript经验总结.html diff --git a/JavaScript经验总结.html b/JavaScript经验总结.html new file mode 100644 index 0000000..b45bdc9 --- /dev/null +++ b/JavaScript经验总结.html @@ -0,0 +1,1065 @@ +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +重要信息: +JavaScript学习网站:https://www.w3school.com.cn/js/js_syntax.asp +Unicode表 +运算符的优先级 +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +流程提取明细 +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +流程提交判断/主表 +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +流程提交判断/明细 +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +流程提取树形字段数据ID +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +设置按钮(参考任务立项流程) +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +给指定元素添加子元素 +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +更新明细序号及任务单号(参考任务立项流程) +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +设置明细操作按钮 +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +多选字段值变时拆分增减项以增减明细行(参考上传附件流程) +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +提取附件格式(参考上传附件流程) +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +明细列的隐藏与显示(参考上传附件流程) +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +隐藏上传附件字段的部分内容(参考上传附件流程) +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +把主表上传附件的附件列表更新至明细表(参考上传附件流程) +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +查询列表锁定左侧行表头设置 +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + + + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +查询列表锁定左侧行表头设置 +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +阿拉伯数字转中文数字 +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +在JS中调用字段属性的SQL语句获取数据(参考任务计划流程) +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +前端执行SQL查询语句 +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +ecode自制弹框 +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +自制字段值错误提示框 +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +前端执行SQL增、删、改语句 +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ + +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +用CSS给按钮增加效果 +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ +.icon-customer-contacts:hover {/*给关联工程与项目按钮增加效果*/ +color: #57C5F7 !important; +font-size: 125% !important; +text-shadow:0px 0px 1px black ; +} +.icon-customer-contacts:active {/*给关联工程与项目按钮增加效果*/ +color: #2BAEE9 !important; +font-size: 125% !important; +} +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +查询表头居中 +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ +.react-resizable { +text-align:center !important; +} +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +查询表头自动换行 +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ +.react-resizable .ant-table-column-sorterN.text-elli{ +white-space:pre-wrap; +} +/* +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +改变输入框样式(costTime为字段所在单元格的自定义className) +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +*/ +.costTime>div>input { + /*去除上、左、右边框,只读内容靠右并缩进5px*/ + border-left: none !important; + border-right: none !important; + border-top: none !important; + text-align: right; + padding-right: 5px !important; +} + +.costTime { + /*编辑内容靠右并缩进5px*/ + text-align: right; + padding-right: 5px !important; +} + +.costTime_swap{ + /*改变输入框样式*/ + padding-left: 5px !important; +} \ No newline at end of file