惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
The Register - Security
The Register - Security
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
P
Proofpoint News Feed
Project Zero
Project Zero
The GitHub Blog
The GitHub Blog
The Last Watchdog
The Last Watchdog
F
Fortinet All Blogs
S
Schneier on Security
Help Net Security
Help Net Security
Security Archives - TechRepublic
Security Archives - TechRepublic
C
Check Point Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
I
InfoQ
T
The Blog of Author Tim Ferriss
Cisco Talos Blog
Cisco Talos Blog
Stack Overflow Blog
Stack Overflow Blog
T
Troy Hunt's Blog
人人都是产品经理
人人都是产品经理
T
Threatpost
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cyber Attacks, Cyber Crime and Cyber Security
雷峰网
雷峰网
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
Forbes - Security
Forbes - Security
Vercel News
Vercel News
S
Security Affairs
美团技术团队
P
Privacy & Cybersecurity Law Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Jina AI
Jina AI
Spread Privacy
Spread Privacy
Attack and Defense Labs
Attack and Defense Labs
IT之家
IT之家
U
Unit 42
Recorded Future
Recorded Future
W
WeLiveSecurity
PCI Perspectives
PCI Perspectives
P
Palo Alto Networks Blog
H
Hacker News: Front Page
S
Security @ Cisco Blogs
博客园 - 【当耐特】

博客园 - rainbow727

ps-图层调整大小 js 根据关键字,进行mark背景色标记 时间戳转换为时间格式 ps-图层尺寸缩放 ps-窗口缩放比例调整 Extjs小例子 ps-填充色 jq 数组对象,重复数据进行合并 ipv4,ipv6起止地址判断,网段判断 HTML li标签排列有空白间隙 Ext.js知识点纪要 PHP 文件内容处理 知识点小纪要 function函数 常用正则表达式 正则表达式的字符含义 邮箱正则表达式 jQuery相关面试题 js继承
bug
rainbow727 · 2025-09-24 · via 博客园 - rainbow727

5064

var ipValue = Ext.getCmp('AddHostPanelID').getForm().findField('ipaddr').getValue();
                            var dataRecords = Ext.getCmp('hostIPListPanel').IPGrid.getStore().getRange();
                            var maskValue = Ext.getCmp('AddHostPanelID').getForm().findField('netmask').getValue();
                            if(maskValue == ""){
                                var ipdata = ipValue+"";
                                for (var i = 0; i < dataRecords.length; i++) {
                                    if (dataRecords[i].data.addr.indexOf("|", 0) > 0){
                                        str = dataRecords[i].data.addr;
                                        arr = str.split("|");
                                        if (arr[0] == ipdata) {
                                            Ext.Msg.alert("警告", "该记录已经存在!");
                                            return;
                                        }
                                    }
                                }
                               }else{
                                   
                                   for (var i = 0; i < dataRecords.length; i++) {
                                    if (dataRecords[i].data.addr.indexOf("|", 0) < 0){
                                        
                                        if ( dataRecords[i].data.addr == ipValue) {
                                            Ext.Msg.alert("警告", "该记录已经存在!");
                                            return;
                                        }
                                    }
                                }
                                   
                               }