addUrlInfo() {
console.log(this.addSysUrls.sysName);
this.requestServiceProvider.post(this.addSysUrls, '/sysUrl')
.subscribe(
result => {
if (result.code !== 0 ) {
return result.message;
} else {
this.modalService.hide(1);
this.queryUrlInfo();
}
},
);
}
if...else...:同java中语法相同:
if(){
}else{
}
TypeScript(ts)文件,方法实现中等于或不等于,同PHP中语法相同:
等于 :===
不等于:!==
欢迎大家吐槽!!