Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function saveProperties(){
if(!config['axe.home'] || config['axe.home'] == 'null' || config['axe.home'] == null || config['axe.home'] == ''){
alert('axe.home 必填');
return false;
}
if(!config['axe.email'] || config['axe.email'] == 'null' || config['axe.email'] == null || config['axe.email'] == ''){
alert('axe.email 必填');
return false;
}
if(!config['axe.classhelper.keep'] || config['axe.classhelper.keep'] == 'null' || config['axe.classhelper.keep'] == null || config['axe.classhelper.keep'] == ''){
alert('axe.classhelper.keep 必填');
return false;
}
if(!config['jdbc.datasource'] || config['jdbc.datasource'] == 'null' || config['jdbc.datasource'] == null || config['jdbc.datasource'] == ''){
if(!config['jdbc.driver'] || config['jdbc.driver'] == 'null' || config['jdbc.driver'] == null || config['jdbc.driver'] == ''){
alert('jdbc.driver 必填');
return false;
}
if(!config['jdbc.url'] || config['jdbc.url'] == 'null' || config['jdbc.url'] == null || config['jdbc.url'] == ''){
alert('jdbc.url 必填');
return false;
}
if(!config['jdbc.username'] || config['jdbc.username'] == 'null' || config['jdbc.username'] == null || config['jdbc.username'] == ''){
alert('jdbc.username 必填');
return false;
}
if(!config['jdbc.password'] || config['jdbc.password'] == 'null' || config['jdbc.password'] == null || config['jdbc.password'] == ''){
alert('jdbc.password 必填');
return false;
}function saveProperties(){
if(!config['jw.home'] || config['jw.home'] == 'null' || config['jw.home'] == null || config['jw.home'] == ''){
alert('jw.home 必填');
return false;
}
if(!config['jw.classhelper.keep'] || config['jw.classhelper.keep'] == 'null' || config['jw.classhelper.keep'] == null || config['jw.classhelper.keep'] == ''){
alert('jw.classhelper.keep 必填');
return false;
}
if(!config['jdbc.datasource'] || config['jdbc.datasource'] == 'null' || config['jdbc.datasource'] == null || config['jdbc.datasource'] == ''){
if(!config['jdbc.driver'] || config['jdbc.driver'] == 'null' || config['jdbc.driver'] == null || config['jdbc.driver'] == ''){
alert('jdbc.driver 必填');
return false;
}
if(!config['jdbc.url'] || config['jdbc.url'] == 'null' || config['jdbc.url'] == null || config['jdbc.url'] == ''){
alert('jdbc.url 必填');
return false;
}
if(!config['jdbc.username'] || config['jdbc.username'] == 'null' || config['jdbc.username'] == null || config['jdbc.username'] == ''){
alert('jdbc.username 必填');
return false;
}
if(!config['jdbc.password'] || config['jdbc.password'] == 'null' || config['jdbc.password'] == null || config['jdbc.password'] == ''){
alert('jdbc.password 必填');
return false;
}