勒索病毒防范措施

<h1 style="margin: 0px; padding: 0px; font-size: 20px; color: rgb(34, 34, 34);">勒索病毒防范措施</h1><p class="titBar" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(153, 153, 153);">发布日期:2021-06-11 浏览次数:9971 发布者:</p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">“勒索病毒风靡全球,病毒肆虐,让企业和单位,包括个人蒙受损失,让大家闻风色变,俗话说:“兵来将挡水来土掩”,病毒虽然猖獗,但是大家平时做好安全防护措施,增加安全意识,不要轻易打开陌生的邮件,包括广告内容,及时更新系统和打系统漏洞补丁,还有使用移动存储设备的时候,要升级病毒库,查杀U盘。在使用移动存储设备,先查杀,后使用原则,做好以下措施,感染勒索病毒或者其他变异病毒,概率会大大降低。大家养成良好的操作习惯。以下是防范勒索病毒措施;</span><span style="font-family: 仿宋; color: rgb(0, 176, 80); font-size: 16pt;">Windows客户端和服务器端同样适用。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">”</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-align: center; text-indent: 22pt; vertical-align: baseline;"><img src="/ueditor/net/upload/image/20251120/6389920217025142708301264.png" alt=""/></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32.15pt; vertical-align: baseline;"><strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">一、病毒定义:</span></strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">勒索病毒,是一种新型</span><a href="https://baike.baidu.com/item/%E7%94%B5%E8%84%91%E7%97%85%E6%AF%92/141560" style="text-decoration-line: none; outline: none; color: rgb(85, 85, 85);"><span class="15" style="font-family: 仿宋; color: rgb(19, 110, 194); font-size: 16pt;">电脑病毒</span></a><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">,主要以邮件、程序木马、网页挂马的形式进行传播。该病毒性质恶劣、危害极大,一旦感染将给用户带来无法估量的损失。这种病毒利用各种加密算法对文件进行加密,被感染者一般无法解密,必须拿到解密的私钥才有可能破解。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-align: center; text-indent: 32.15pt; vertical-align: baseline;"><img src="/ueditor/net/upload/image/20251120/6389920217042339187015650.png" alt=""/></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">2017年12月13日,“勒索病毒”入选国家语言资源监测与研究中心发布的“2017年度中国媒体十大新词语”。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">从2018年初到9月中旬,勒索病毒总计对超过200万台终端发起过攻击,攻击次数高达1700万余次,且整体呈上升趋势。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32.15pt; vertical-align: baseline;"><strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">二、传播途径:</span></strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">勒索病毒文件一旦进入本地,就会自动运行,同时删除勒索软件样本,以躲避查杀和分析。接下来,勒索病毒利用本地的互联网访问权限连接至黑客的C&amp;C服务器,进而上传本机信息并下载加密私钥与公钥,利用私钥和公钥对文件进行加密。除了病毒开发者本人,其他人是几乎不可能解密。加密完成后,还会修改壁纸,在桌面等明显位置生成勒索提示文件,指导用户去缴纳赎金。且变种类型非常快,对常规的</span><a href="https://baike.baidu.com/item/%E6%9D%80%E6%AF%92%E8%BD%AF%E4%BB%B6" style="text-decoration-line: none; outline: none; color: rgb(85, 85, 85);"><span class="15" style="font-family: 仿宋; color: rgb(0, 0, 0); font-size: 16pt;">杀毒软件</span></a><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">都具有免疫性。攻击的样本以exe、js、wsf、vbe等类型为主,对常规依靠特征检测的安全产品是一个极大的挑战。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">通过漏洞发起的攻击占攻击总数的87.7%。由于win7、xp等老旧系统存在大量无法及时修复的漏洞,而政府、企业、学校、医院等局域网机构用户使用较多的恰恰是win7、xp等老旧系统,因此也成为病毒攻击的重灾区,病毒可以通过漏洞在局域网中无限传播。相反,win10系统因为强制更新,几乎不受漏洞攻击的影响。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">通过邮件与广告推广的攻击分别为7.4%、3.9%。虽然这两类传播方式占比较少,但对于有收发邮件、网页浏览需求的企业而言,依旧会受到威胁。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">此外,对于某些特别依赖U盘、记录仪办公的局域网机构用户来说,外设则成为勒索病毒攻击的特殊途径。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32.15pt; vertical-align: baseline;"><strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">三、攻击对象:</span></strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">勒索病毒一般分两种攻击对象,一部分针对企业用户(如xtbl,wallet),一部分针对所有用户。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32.15pt; vertical-align: baseline;"><strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">四、病毒规律:</span></strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">该类型病毒的目标性强,主要以邮件为传播方式。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">勒索病毒文件一旦被用户点击打开,会利用连接至</span><a href="https://baike.baidu.com/item/%E9%BB%91%E5%AE%A2" style="text-decoration-line: none; outline: none; color: rgb(85, 85, 85);"><span class="15" style="font-family: 仿宋; color: rgb(19, 110, 194); font-size: 16pt;">黑客</span></a><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">的C&amp;C</span><a href="https://baike.baidu.com/item/%E6%9C%8D%E5%8A%A1%E5%99%A8" style="text-decoration-line: none; outline: none; color: rgb(85, 85, 85);"><span class="15" style="font-family: 仿宋; color: rgb(19, 110, 194); font-size: 16pt;">服务器</span></a><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">,进而上传本机</span><a href="https://baike.baidu.com/item/%E4%BF%A1%E6%81%AF" style="text-decoration-line: none; outline: none; color: rgb(85, 85, 85);"><span class="15" style="font-family: 仿宋; color: rgb(19, 110, 194); font-size: 16pt;">信息</span></a><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">并下载加密公钥和私钥。然后,将加密公钥私钥写入到注册表中,遍历本地所有</span><a href="https://baike.baidu.com/item/%E7%A3%81%E7%9B%98" style="text-decoration-line: none; outline: none; color: rgb(85, 85, 85);"><span class="15" style="font-family: 仿宋; color: rgb(19, 110, 194); font-size: 16pt;">磁盘</span></a><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">中的Office 文档、图片等文件,对这些文件进行格式篡改和加密;加密完成后,还会在桌面等明显位置生成勒索提示文件,指导用户去缴纳赎金。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">该类型病毒可以导致重要文件无法读取,关键数据被损坏,给用户的正常工作带来了极为严重的影响。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32.15pt; vertical-align: baseline;"><strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">五、病毒分析</span></strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">一般勒索病毒,运行流程复杂,且针对关键数据以加密函数的方式进行隐藏。以下为APT沙箱分析到样本载体的关键行为。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">1、调用加密算法库。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">2、通过脚本文件进行Http请求。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">3、通过脚本文件下载文件。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">4、读取远程服务器文件。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">5、通过wscript执行文件。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">6、收集计算机信息。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">7、遍历文件。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32.15pt; vertical-align: baseline;"><strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">六、病毒防御</span></strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32.15pt; vertical-align: baseline;"><strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">1:关闭服务进程(杜绝445端口)</span></strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">开始菜单-》控制面板-》管理工具-》服务-》Server,点击禁止,然后启动类型选择禁用。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-align: center; text-indent: 32pt; vertical-align: baseline;"><img src="/ueditor/net/upload/image/20251120/6389920217053299566514883.png" alt=""/></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32.15pt; vertical-align: baseline;"><strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">2:注册表关闭勒索病毒服务</span></strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">开始菜单-》运行-》REGEDIT</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters新建DWORD键值,数值数据填写为0,基数选择十六进制,确定即可。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-align: center; text-indent: 32.15pt; vertical-align: baseline;"><img src="/ueditor/net/upload/image/20251120/6389920217061111234257454.png" alt=""/></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32.15pt; vertical-align: baseline;"><strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">3:开启防火墙,防微杜渐过滤危险端口</span></strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">开始菜单-》控制面板-》管理工具-》高级安全Windows Defender防火墙-》入站规则-》-》新建规则-》端口-》TCP-》特定本地端口-》阻止连接-》(域和专用还有公用)-》下一步-》名称和描述(比如135 &amp; 135端口过滤阻止),其他端口过滤同上方法。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32.15pt; vertical-align: baseline;"><strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">4:组策略安全设置ip安全策略</span></strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">开始菜单-》运行-》gpedit.msc,打开本地组策略编辑器。依次展开“计算机配置---windows设置---安全设置---ip安全策略,在本地计算机”</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-align: center; text-indent: 32pt; vertical-align: baseline;"><img src="/ueditor/net/upload/image/20251120/6389920217070491865229270.png" alt=""/></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">以关闭139端口为例(其他端口操作相同):</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">在本地组策略编辑器右边空白处&nbsp;右键单击鼠标,选择“创建IP安全策略”,弹出IP安全策略向导对话框,单击下一步;在出现的对话框中的名称处写“关闭端口”(可随意填写),点击下一步;对话框中的“激活默认响应规则”选项不要勾选,然后单击下一步;勾选“编辑属性”,单击完成。在出现的“关闭端口 属性”对话框中,选择“规则”选项卡,去掉“使用添加向导”前边的勾后,单击“添加”按钮。在出现的“关闭端口 属性”对话框中,选择“规则”选项卡,去掉“使用 添加向导”前边的勾后,单击“添加”按钮。出现添加对话框,名称出填“封端口”(可随意填写),去掉“使用添加向导”前边的勾后,单击右边的“添加”按钮. 在出现的“IP筛选器属性”对话框中,选择“地址”选项卡,“源地址”选择“任何”,“目标地址”选择“我的IP地址”;</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-align: center; text-indent: 32pt; vertical-align: baseline;"><img src="/ueditor/net/upload/image/20251120/6389920217117339005386521.png" alt=""/></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">选择“协议”选项卡,各项设置如图片中所示。设置好后点击“确定”。 返回到“ip筛选器列表”,点击“确定”。返回到“新规则 属性”对话框</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">在ip筛选器列表中选择刚才添加的“封端口”,然后选择“筛选器操作”选项卡,,去掉“使用 添加向导”前面的勾,单击“添加”按钮</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">在“筛选器操作 属性”中,选择“安全方法”选项卡,选择“阻止”选项;在“常规”选项卡中,对该操作命名,点确定.</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">选中刚才新建的“新建1”,单击关闭,返回到“关闭端口属性“对话框,确认“IP安全规则”中 封端口 规则被选中后,单击 确定。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-align: center; text-indent: 32pt; vertical-align: baseline;"><img src="/ueditor/net/upload/image/20251120/6389920217129872868115000.png" alt=""/></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">在组策略编辑器中,可以看到刚才新建的“关闭端口”规则,选中它并单击鼠标右键,选择“分配”选项,使该规则开始应用!</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32pt; vertical-align: baseline;"><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">到此,大功告成,同样的方法你可以添加对任何你想限制访问的端口的规则。</span><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;"></span></p><p class="p" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; text-indent: 32.15pt; vertical-align: baseline;"><strong><span style="font-family: 仿宋; color: rgb(51, 51, 51); font-size: 16pt;">“综上所述:增加个人网络安全意识,养成良好的上网习惯和日常操作习惯,安装杀毒软件和防火墙,升级病毒库,定期全盘杀毒,及时打系统漏洞补丁。定时做好数据备份,把重要数据加密转移到安全的存储介质上,比如云盘和移动硬盘。不要安装过多的应用软件,不要轻易打开陌生的电子邮件,不要点击陌生人给你发送的链接地址,不要访问不知名的网站,不要点击广告内容,使用移动存储设备,先查杀,后使用。”</span></strong></p><p><br/></p>
2025/11/20 2:22:06(zgc) 抢沙发(0) 个人作品
阅读全文

修改服务器远程端口

<p>Windows Registry Editor Version 5.00</p><p><br/></p><p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]</p><p>&quot;PortNumber&quot;=dword:0000c1f7</p><p><br/></p><p><br/></p><p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp]</p><p>&quot;PortNumber&quot;=dword:0000c1f7</p><p><br/></p>
2025/11/20 2:20:27(zgc) 抢沙发(0) 个人作品
阅读全文

2023-12-28 医保接口更新

2023/12/28 15:17:22(zgc) 抢沙发(0) 个人作品
阅读全文

门诊医生站安装包下载

<p><a></a><a href="http://zhenggc.cc/attach/202009/30172322-mzysz_setup地方版本20200419_6.0.0.460.exe">mzysz_setup地方版本20200419_6.0.0.460.exe下载</a><br/></p><p><br/></p><p><a href="http://zhenggc.cc/attach/202009/30172138-电子病历一键安装20200103.rar" target="_self">电子病历一键安装下载</a></p><p>电子病历20231219 新版下载</p><p><span style="font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, 微软雅黑, Tahoma, Arial, sans-serif; font-size: 14px; text-wrap: wrap; background-color: rgb(255, 255, 255);"><a href="http://zhenggc.cc/myyunpan/Share.aspx?code=prGbCbjNNgNHMKoU"> 电子病历20231219 新版下载</a> 提取码:fpao&nbsp;</span></p><p><span style="font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, 微软雅黑, Tahoma, Arial, sans-serif; font-size: 14px; text-wrap: wrap; background-color: rgb(255, 255, 255);"></span></p><hr/><p><span style="font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, 微软雅黑, Tahoma, Arial, sans-serif; font-size: 14px; text-wrap: wrap; background-color: rgb(255, 255, 255);"></span><br/></p><p><span style="font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, 微软雅黑, Tahoma, Arial, sans-serif; font-size: 14px; text-wrap: wrap; background-color: rgb(255, 255, 255);"></span></p><p>电子病历系统一键安装20250117<a href="/uploadfiles/files/20250117054416.rar" target="_blank" title="电子病历系统下载"><strong>电子病历系统下载</strong></a></p><p><span style="font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, 微软雅黑, Tahoma, Arial, sans-serif; font-size: 14px; text-wrap: wrap; background-color: rgb(255, 255, 255);"></span><span style="text-wrap-mode: wrap;">20250117</span>版本电子病历下载,新增功能,中医,西医首页增加转归情况。</p>
2023/11/22 23:42:08(zgc) 抢沙发(0) 个人作品
阅读全文

RAD Studio 10.4.2 绿色版

<p><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">一、绿色版介绍</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">绿色版为完全版,没做任何的精简,也没有做任何的改动!</span><br/><span style="color:#DC143C">绿色版不含任何破解,仅供研究,24小时后请自行删除,如需继续使用RAD&nbsp;Studio,请购买正版。</span><br/><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">二、绿色版文件包说明</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">绿色版共包含4个文件包,分别为:</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">dotnetfx45_full_x86_x64.exe:Microsoft&nbsp;.NET&nbsp;Framework&nbsp;4.5,必选</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">RAD&nbsp;Studio&nbsp;10.4.2&nbsp;绿色版.7z:基础包,必选</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">RAD&nbsp;Studio&nbsp;10.4.2&nbsp;PlatformSDKs.7z:Android&nbsp;SDK、Android&nbsp;NDK,可选</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">RAD&nbsp;Studio&nbsp;10.4&nbsp;Green&nbsp;1.4.rar:绿化程序,必选</span><br/><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">三、绿色版使用说明</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">1.安装Microsoft&nbsp;.NET&nbsp;Framework&nbsp;4.5,只安装一次即可,Windows&nbsp;10已自带,可以跳过此步</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">2.解压RAD&nbsp;Studio&nbsp;10.4.2&nbsp;绿色版.7z到任意目录</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">3.解压RAD&nbsp;Studio&nbsp;10.4.2&nbsp;PlatformSDKs.7z解压到绿色版的Extra目录(10.4\Extra\CatalogRepository\)</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">4.解压RAD&nbsp;Studio&nbsp;10.4&nbsp;Green&nbsp;1.4.rar解压到绿色版目录下(10.4\RADStudioSydneyGreen.exe)</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">5.运行RADStudioSydneyGreen.exe可实现绿化和卸载</span><br/><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">四、下载地址</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">Microsoft&nbsp;.NET&nbsp;Framework&nbsp;4.5&nbsp;官方下载地址:</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;下载地址:</span><img src="/ueditor/net/upload/image/20210228/6375013931970307824735760.gif"/><a target="_blank" href="http://download.microsoft.com/download/b/a/4/ba4a7e71-2906-4b2d-a0e1-80cf16844f5f/dotnetfx45_full_x86_x64.exe" style="text-decoration-line: none; color: rgb(51, 51, 51); font-family: 宋体; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);">http://download.microsoft.com/download/b/a/4/ba4a7e71-2906-4b2d-a0e1-80cf16844f5f/dotnetfx45_full_x86_x64.exe</a><br/><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;RAD&nbsp;Studio&nbsp;10.4.2&nbsp;绿色版.7z(3.69GB,解压后26.2GB)</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">下载地址:https://pan.baidu.com/s/1xmMoFKEt--Kud7_6lB7Dgg</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">提取码:je3q</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;MD5:&nbsp;7C078BC1C78DE33A70F76D98A193E8F6</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;SHA1:&nbsp;37F43F18E57FA6B5C8245169C2D024A26B047998</span><br/><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;RAD&nbsp;Studio&nbsp;10.4.2&nbsp;PlatformSDKs.7z(2.31GB,解压后5.91GB)</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">下载地址:https://pan.baidu.com/s/1TdS9B2t4ymcwrRQwqZKBiw</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">提取码:40w3</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;MD5:&nbsp;34DD02D1EDE2BF62580C76F424E72C2F</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;SHA1:&nbsp;ED3C5D4E35DAB4E8B8ED07582317A042734719E2</span><br/><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;RAD&nbsp;Studio&nbsp;10.4&nbsp;Green&nbsp;1.4.rar(965KB)</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">下载地址:https://pan.baidu.com/s/1_YYv2QiQRJRXolH1u80bsg</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">提取码:0tod</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;MD5:&nbsp;837FF4733D85FF4F7C77B803804AEC32</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;SHA1:&nbsp;5F81CFE8BB39A4F983A63C64050ACCAFE86193AF</span><br/><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;RAD&nbsp;Studio&nbsp;10.4&nbsp;Green&nbsp;Update&nbsp;History</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;-1.4</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;&nbsp;&nbsp;&nbsp;支持RAD&nbsp;Studio&nbsp;10.4.2</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;-1.3</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;&nbsp;&nbsp;&nbsp;支持RAD&nbsp;Studio&nbsp;10.4.1</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;-1.2</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;&nbsp;&nbsp;&nbsp;修正部分环境变量路径错误</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">-1.1</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;&nbsp;&nbsp;&nbsp;修正关联文件路径错误</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;&nbsp;&nbsp;&nbsp;修正帮助文件路径错误</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;&nbsp;&nbsp;&nbsp;修正卸载会连同10.3一起卸载的错误</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">-1.0</span><br/><span style="font-family: 宋体; font-size: 12px; background-color: rgb(255, 255, 255);">&nbsp;&nbsp;&nbsp;&nbsp;RAD&nbsp;Studio&nbsp;10.4&nbsp;绿化程序第一版</span></p><p><span style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">https://cloud.189.cn/t/RjmmEnZJfqqa&nbsp;(访问码:9g8i)&nbsp;天翼云盘</span></p><p>转自:<a></a>http://bbs.2ccc.com/topic.asp?topicid=605673<a></a></p>
2021/2/27 21:26:32(zgc) 抢沙发(1) 个人作品
阅读全文

Page.ClientScript.RegisterStartupScript不执行问题【转】

<p style="margin: 10px auto; color: rgb(0, 0, 102); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 13px; white-space: normal; background-color: rgb(255, 255, 255);">c#后台使用Page.ClientScript.RegisterStartupScript在前台注册一段脚本提示,发现没有效果,寻寻觅觅,终于从度娘处找到了原因:</p><p style="margin: 10px auto; color: rgb(0, 0, 102); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 13px; white-space: normal; background-color: rgb(255, 255, 255);">该页面多次使用到了Page.ClientScript.RegisterStartupScript(Type type, string key, string script)</p><p style="margin: 10px auto; color: rgb(0, 0, 102); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 13px; white-space: normal; background-color: rgb(255, 255, 255);">问题就出在了参数key上,同一页面会按顺序执行Page.ClientScript.RegisterStartupScript(Type type, string key, string script),如果key都为空或为相同的值,则会只执行第一个脚本,所以后面的就失效了。</p><pre class="brush:c#;toolbar:false">Page.ClientScript.RegisterStartupScript(this.GetType(),&nbsp;&quot;alertsuccess&quot;,&nbsp;&quot;&lt;script&nbsp;language=&#39;javascript&#39;&gt;SendSuccess();&lt;/script&gt;&quot;);</pre><pre class="brush:c#;toolbar:false">&nbsp;&nbsp;///&nbsp;&lt;summary&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;///&nbsp;显示消息提示对话框 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;///&nbsp;&lt;/summary&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;///&nbsp;&lt;param&nbsp;name=&quot;page&quot;&gt;当前页面指针,一般为this&lt;/param&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;///&nbsp;&lt;param&nbsp;name=&quot;msg&quot;&gt;提示信息&lt;/param&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;void&nbsp;Show(System.Web.UI.Page&nbsp;page,&nbsp;string&nbsp;msg) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//由于可能频繁调用,增加随机因子&nbsp;2020-12-17 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Random&nbsp;rnd&nbsp;=&nbsp;new&nbsp;Random(1200); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page.ClientScript.RegisterStartupScript(page.GetType(),&nbsp;&quot;message&quot;&nbsp;+&nbsp;rnd.Next().ToString()&nbsp;+&nbsp;rnd.Next().ToString(),&nbsp;&quot;&lt;script&nbsp;language=&#39;javascript&#39;&nbsp;defer&gt;alert(&#39;&quot;&nbsp;+&nbsp;msg.ToString()&nbsp;+&nbsp;&quot;&#39;);&lt;/script&gt;&quot;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</pre><p>转自:<a href="https://www.cnblogs.com/wufeng123/p/4459542.html">https://www.cnblogs.com/wufeng123/p/4459542.html</a> </p><p><br/></p>
2020/12/17 17:31:03(zgc) 抢沙发(0) 个人作品
阅读全文

【转】bootstrap输入验证

<p style="margin: 10px auto; padding: 0px; line-height: 1.5; font-size: 13px; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);">下载并复制bootstrap验证css以及js到项目</p><p style="margin: 10px auto; padding: 0px; line-height: 1.5; font-size: 13px; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);">创建自己的验证myValidater.js:</p><pre class="brush:js;toolbar:false">function&nbsp;validate(form)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;validateObj&nbsp;=&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message:&nbsp;&#39;This&nbsp;value&nbsp;is&nbsp;not&nbsp;valid&#39;, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;feedbackIcons:&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;valid:&nbsp;&#39;glyphicon&nbsp;glyphicon-ok&#39;, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;invalid:&nbsp;&#39;glyphicon&nbsp;glyphicon-remove&#39;, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;validating:&nbsp;&#39;glyphicon&nbsp;glyphicon-refresh&#39; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},&nbsp;fields:&nbsp;{} &nbsp;&nbsp;&nbsp;&nbsp;}; &nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;(数组,&nbsp;&nbsp;方法(下标,对象){}); &nbsp;&nbsp;&nbsp;&nbsp;$.each(form.find(&quot;input&quot;),&nbsp;function&nbsp;(i,&nbsp;item)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;fields:{&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;userName:&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message:&nbsp;&#39;用户名验证失败&#39;,&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;validators:&nbsp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;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;obj&nbsp;=&nbsp;{};&nbsp;//存放验证规则 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;obj.message&nbsp;=&nbsp;$(item).attr(&quot;name&quot;)&nbsp;+&nbsp;&quot;必须填写&quot;; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;validators&nbsp;=&nbsp;{&nbsp;}; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(typeof&nbsp;($(item).attr(&quot;myValidate&quot;))&nbsp;==&nbsp;&quot;undefined&quot;)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;xiaoXi=$(item).parents(&quot;div.form-group&quot;).find(&quot;label&quot;).text(); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//非空验证 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($(item).attr(&quot;myValidate&quot;).indexOf(&quot;notEmpty&quot;)&nbsp;!=&nbsp;-1)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;validators.notEmpty&nbsp;=&nbsp;{&nbsp;message:&nbsp;xiaoXi+&quot;不能为空&quot;&nbsp;}; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//数字 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($(item).attr(&quot;myValidate&quot;).indexOf(&quot;numeric&quot;)&nbsp;!=&nbsp;-1)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;validators.numeric&nbsp;=&nbsp;{&nbsp;message:xiaoXi+&quot;必须是数字&quot;&nbsp;}; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;&nbsp;长度 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stringLength:&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;min:&nbsp;6, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;max:&nbsp;18, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message:&nbsp;&#39;用户名长度必须在6到18位之间&#39; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($(item).attr(&quot;myValidate&quot;).indexOf(&quot;stringLength&quot;)&nbsp;!=&nbsp;-1)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;str&nbsp;=&nbsp;$(item).attr(&quot;myValidate&quot;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//2,10 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;val&nbsp;=&nbsp;str.substring(str.indexOf(&quot;(&quot;,&nbsp;str.indexOf(&quot;stringLength&quot;))&nbsp;+&nbsp;1,&nbsp;str.indexOf(&quot;)&quot;,&nbsp;str.indexOf(&quot;stringLength&quot;))); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;stringLen&nbsp;=&nbsp;{}; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stringLen[&quot;min&quot;]&nbsp;=&nbsp;val.split(&quot;,&quot;)[0]; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stringLen[&quot;max&quot;]&nbsp;=&nbsp;val.split(&quot;,&quot;)[1]; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stringLen.message&nbsp;=xiaoXi&nbsp;+&nbsp;&quot;长度必须为&quot;&nbsp;+&nbsp;val.split(&quot;,&quot;)[0]&nbsp;+&nbsp;&quot;到&quot;&nbsp;+&nbsp;val.split(&quot;,&quot;)[1]&nbsp;+&nbsp;&quot;之间&quot;; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;validators.stringLength&nbsp;=&nbsp;stringLen; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//长度必须几位 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($(item).attr(&quot;myValidate&quot;).indexOf(&quot;size&quot;)&nbsp;!=&nbsp;-1)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;str&nbsp;=&nbsp;$(item).attr(&quot;myValidate&quot;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//2,10 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;val&nbsp;=&nbsp;str.substring(str.indexOf(&quot;(&quot;,&nbsp;str.indexOf(&quot;size&quot;))&nbsp;+&nbsp;1,&nbsp;str.indexOf(&quot;)&quot;,&nbsp;str.indexOf(&quot;size&quot;))); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;stringLen&nbsp;=&nbsp;{}; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stringLen[&quot;min&quot;]&nbsp;=&nbsp;val; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stringLen[&quot;max&quot;]&nbsp;=&nbsp;val; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stringLen.message&nbsp;=xiaoXi&nbsp;+&nbsp;&quot;长度必须为&quot;&nbsp;+&nbsp;val+&nbsp;&quot;位&quot;; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;validators.stringLength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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($(item).attr(&quot;myValidate&quot;).indexOf(&quot;email&quot;)&nbsp;!=&nbsp;-1)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;validators.emailAddress&nbsp;=&nbsp;{&nbsp;message:&nbsp;&quot;电子邮箱地址不正确&quot;&nbsp;}; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//网址 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($(item).attr(&quot;myValidate&quot;).indexOf(&quot;uri&quot;)&nbsp;!=&nbsp;-1)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;validators.uri&nbsp;=&nbsp;{&nbsp;allowLocal:&nbsp;&quot;true&quot;,&nbsp;message:&nbsp;&quot;Uri地址格式不正确&quot;&nbsp;}; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//两次输入的密码不一致 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;identical:&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;field:&nbsp;&#39;password&#39;,&nbsp;//需要进行比较的input&nbsp;name值 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message:&nbsp;&#39;两次密码不一致&#39; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($(item).attr(&quot;myValidate&quot;).indexOf(&quot;identical&quot;)&nbsp;!=&nbsp;-1)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;str&nbsp;=&nbsp;$(item).attr(&quot;myValidate&quot;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;val&nbsp;=&nbsp;str.substring(str.indexOf(&quot;(&quot;,&nbsp;str.indexOf(&quot;identical&quot;))&nbsp;+&nbsp;1,&nbsp;str.indexOf(&quot;)&quot;,&nbsp;str.indexOf(&quot;identical&quot;))); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;validators.identical&nbsp;=&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;field:&nbsp;val, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message:&nbsp;&#39;密码和重复密码不一致&#39; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;年龄 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($(item).attr(&quot;myValidate&quot;).indexOf(&quot;ages&quot;)&nbsp;!=&nbsp;-1)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;val&nbsp;=&nbsp;str.substring(str.indexOf(&quot;(&quot;,&nbsp;str.indexOf(&quot;ages&quot;))&nbsp;+&nbsp;1,&nbsp;str.indexOf(&quot;)&quot;,&nbsp;str.indexOf(&quot;ages&quot;))); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;stringLen&nbsp;=&nbsp;{}; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stringLen[&quot;min&quot;]&nbsp;=&nbsp;val.split(&quot;,&quot;)[0]; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stringLen[&quot;max&quot;]&nbsp;=&nbsp;val.split(&quot;,&quot;)[1]; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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p;&nbsp;&nbsp;remote:&nbsp;{//ajax验证。server&nbsp;result:{&quot;valid&quot;,true&nbsp;or&nbsp;false}&nbsp;向服务发送当前input&nbsp;name值,获得一个json数据。例表示正确:{&quot;valid&quot;,true}&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url:&nbsp;&#39;exist2.do&#39;,//验证地址 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message:&nbsp;&#39;用户已存在&#39;,//提示消息 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type:&nbsp;&#39;POST&#39;//请求方式 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/**自定义提交数据,默认值提交当前input&nbsp;value &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;data:&nbsp;function(validator)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs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;&nbsp;&nbsp;//&nbsp;remote(地址.action,&nbsp;input=id=主键的值)&nbsp;&nbsp;&nbsp;新增:员工登录名.action?empNo=0&amp;empName=姓名 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($(item).attr(&quot;myValidate&quot;).indexOf(&quot;remote&quot;)&nbsp;!=&nbsp;-1)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;str&nbsp;=&nbsp;$(item).attr(&quot;myValidate&quot;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;val&nbsp;=&nbsp;str.substring(str.indexOf(&quot;(&quot;,&nbsp;str.indexOf(&quot;remote&quot;))&nbsp;+&nbsp;1,&nbsp;str.indexOf(&quot;)&quot;,&nbsp;str.indexOf(&quot;remote&quot;))); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;arr=val.split(&quot;,&quot;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//向远程服务器发送的值 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;cust_data={}; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//主键如果有就取值,如果没有就为0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cust_data[arr[1]]=$(&quot;#&quot;+arr[1]).val()&nbsp;||&nbsp;0; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//name=&quot;empName&quot; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cust_data[$(item).attr(&quot;name&quot;)]=$(item).val(); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;validators.remote&nbsp;=&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type:&#39;POST&#39;, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url:&nbsp;arr[0], &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data:cust_data, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message:&nbsp;xiaoXi+&#39;已经存在!&#39; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;obj.validators&nbsp;=&nbsp;validators; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;validateObj.fields[$(item).attr(&quot;name&quot;)]&nbsp;=&nbsp;obj; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;}) &nbsp;&nbsp;&nbsp;&nbsp;form.bootstrapValidator(validateObj); }</pre><p><span style="font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);">在页面中导入验证的css和js:</span></p><pre class="brush:html;toolbar:false">&lt;!--&nbsp;bootstrapvalidator的css&nbsp;--&gt; &nbsp;&nbsp;&lt;link&nbsp;href=&quot;${pageContext.request.contextPath&nbsp;}/static/plugins/bootstrapvalidator/bootstrapValidator.min.css&quot;&nbsp;rel=&quot;stylesheet&quot;&gt;&lt;!--&nbsp;bootstrapvalidator的js&nbsp;--&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;script&nbsp;src=&quot;${pageContext.request.contextPath&nbsp;}/static/plugins/bootstrapvalidator/bootstrapValidator.min.js&quot;&gt;&lt;/script&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;script&nbsp;src=&quot;${pageContext.request.contextPath&nbsp;}/static/plugins/bootstrapvalidator/language/zh_CN.js&quot;&gt;&lt;/script&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;script&nbsp;src=&quot;${pageContext.request.contextPath&nbsp;}/static/plugins/bootstrapvalidator/myValidater.js&quot;&gt;&lt;/script&gt;</pre><p><span style="font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);"></span><span style="font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);">在input标签中:</span></p><pre class="brush:html;toolbar:false">&lt;input&nbsp;type=&quot;text&quot;&nbsp;id=&quot;startTime&quot;&nbsp;name=&quot;startTime&quot;&nbsp;&nbsp;myValidater=&quot;notEmpty&quot;&nbsp;&nbsp;&nbsp;class=&quot;form-control&nbsp;form_datetime&quot;&nbsp;placeholder=&quot;请选择日期&quot;&nbsp;/&gt;</pre><p><span style="font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);">在javascript中:</span><span style="font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);"></span><br/></p><pre class="brush:js;toolbar:false">&nbsp;&lt;script&nbsp;type=&quot;text/javascript&quot;&gt; &nbsp;&nbsp;&nbsp;&nbsp;$(function(){&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//bootstrapvalidator验证 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;validate(&nbsp;$(&quot;form&quot;)&nbsp;); &nbsp;&nbsp;&nbsp;&nbsp;});</pre><p>转自:https://www.cnblogs.com/by-1642146903/articles/7143596.html<span style="font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);"></span><br/></p>
2020/12/4 14:26:09(zgc) 抢沙发(2) 个人作品
阅读全文

【转】bootstrap 轮播图片

<pre class="brush:html;toolbar:false">&lt;!DOCTYPE&nbsp;html&gt; &lt;html&gt; &lt;head&gt; &nbsp;&nbsp;&lt;title&gt;Bootstrap&nbsp;实例&lt;/title&gt; &nbsp;&nbsp;&lt;meta&nbsp;charset=&quot;utf-8&quot;&gt; &nbsp;&nbsp;&lt;meta&nbsp;name=&quot;viewport&quot;&nbsp;content=&quot;width=device-width,&nbsp;initial-scale=1&quot;&gt; &nbsp;&nbsp;&lt;link&nbsp;rel=&quot;stylesheet&quot;&nbsp;href=&quot;https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css&quot;&gt; &nbsp;&nbsp;&lt;script&nbsp;src=&quot;https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js&quot;&gt;&lt;/script&gt; &nbsp;&nbsp;&lt;script&nbsp;src=&quot;https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js&quot;&gt;&lt;/script&gt; &nbsp;&nbsp;&lt;script&nbsp;src=&quot;https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js&quot;&gt;&lt;/script&gt; &nbsp;&nbsp;&lt;style&gt; &nbsp;&nbsp;/*&nbsp;Make&nbsp;the&nbsp;image&nbsp;fully&nbsp;responsive&nbsp;*/ &nbsp;&nbsp;.carousel-inner&nbsp;img&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width:&nbsp;100%; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height:&nbsp;100%; &nbsp;&nbsp;} &nbsp;&nbsp;&lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div&nbsp;id=&quot;demo&quot;&nbsp;class=&quot;carousel&nbsp;slide&quot;&nbsp;data-ride=&quot;carousel&quot;&gt; &nbsp; &nbsp;&nbsp;&lt;!--&nbsp;指示符&nbsp;--&gt; &nbsp;&nbsp;&lt;ul&nbsp;class=&quot;carousel-indicators&quot;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;data-target=&quot;#demo&quot;&nbsp;data-slide-to=&quot;0&quot;&nbsp;class=&quot;active&quot;&gt;&lt;/li&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;data-target=&quot;#demo&quot;&nbsp;data-slide-to=&quot;1&quot;&gt;&lt;/li&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;li&nbsp;data-target=&quot;#demo&quot;&nbsp;data-slide-to=&quot;2&quot;&gt;&lt;/li&gt; &nbsp;&nbsp;&lt;/ul&gt; &nbsp; &nbsp;&nbsp;&lt;!--&nbsp;轮播图片&nbsp;--&gt; &nbsp;&nbsp;&lt;div&nbsp;class=&quot;carousel-inner&quot;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;carousel-item&nbsp;active&quot;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;img&nbsp;src=&quot;https://static.runoob.com/images/mix/img_fjords_wide.jpg&quot;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;carousel-item&quot;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;img&nbsp;src=&quot;https://static.runoob.com/images/mix/img_nature_wide.jpg&quot;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;class=&quot;carousel-item&quot;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;img&nbsp;src=&quot;https://static.runoob.com/images/mix/img_mountains_wide.jpg&quot;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt; &nbsp;&nbsp;&lt;/div&gt; &nbsp; &nbsp;&nbsp;&lt;!--&nbsp;左右切换按钮&nbsp;--&gt; &nbsp;&nbsp;&lt;a&nbsp;class=&quot;carousel-control-prev&quot;&nbsp;href=&quot;#demo&quot;&nbsp;data-slide=&quot;prev&quot;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;span&nbsp;class=&quot;carousel-control-prev-icon&quot;&gt;&lt;/span&gt; &nbsp;&nbsp;&lt;/a&gt; &nbsp;&nbsp;&lt;a&nbsp;class=&quot;carousel-control-next&quot;&nbsp;href=&quot;#demo&quot;&nbsp;data-slide=&quot;next&quot;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;span&nbsp;class=&quot;carousel-control-next-icon&quot;&gt;&lt;/span&gt; &nbsp;&nbsp;&lt;/a&gt; &nbsp; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;</pre><p>转载:https://www.runoob.com/try/try.php?filename=trybs4_carousel</p>
2020/11/27 16:41:01(zgc) 抢沙发(0) 个人作品
阅读全文
1/3, 24«123»
执行时间 0.1071 秒(s), 11 个查询