Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215

Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215
Angular Framework 将两个 Observable 的返回结果,合并到数组中 – 扎老铁
Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215

Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215
Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215
class="post-52860 post type-post status-publish format-standard hentry">

Angular Framework 将两个 Observable 的返回结果,合并到数组中

Observable.combineLatest(ld.observable, this.deviceTypesLoader.observable)
  .subscribe((x: Array<DeviceDef | DeviceType[]>) => {
  //  console.log("combineLatest", x);
    let def = <DeviceDef>x[0];
    let arr = <DeviceType[]> x[1];
    if (arr && def) {
      let tid = def.deviceTypeId;
      // let t = arr.find(x => x.id == tid);
      this.changeDeviceType(tid, arr);
    }
  });

 

发表评论

电子邮件地址不会被公开。