为什么80%的码农都做不了架构师?>>>   hot3.png

Getting Started

In the first post, we used Angular CLI to generate the project skeleton, and used ng serve to run this application on Angular CLI built-in webpack dev server.

Now we wil add more components, Angular CLI provides ng generate to create a component quickly. Follow the steps that we have done in Getting started with Angular 1.5 and ES6, we will create a simple blog application.

You can get source codes from Github.

Generate posts component

Enter the project root folder, and generate a new component via:

ng g component posts

You will see the following info.

create src\app\posts\posts.component.css
create src\app\posts\posts.component.html
create src\app\posts\posts.component.spec.ts
create src\app\posts\posts.component.ts 

By default, it will create a new folder under src\app folder, named posts. And the newly created component will be generated into the posts folder.

Have a look at the home of posts.component.ts file.

import { Component, OnInit } from '@angular/core';@Component({selector: 'app-posts',templateUrl: './posts.component.html',styleUrls: ['./posts.component.css']
})
export class PostsComponent implements OnInit {constructor() { }ngOnInit() {}}

It declares a component named PostsComponent.

posts.component.css is the component specific CSS style file used for PostsComponent, posts.component.html is the template file for PostsComponent.

posts.component.spec.ts is the unit test file.

import { TestBed, async } from '@angular/core/testing';
import { PostsComponent } from './posts.component';describe('Component: Posts', () => {it('should create an instance', () => {let component = new PostsComponent();expect(component).toBeTruthy();});
});

Common page layout

Generally, a page layout could be consist of header, sidebar, home body, and footer section, and only home section are replaced with different home in different views.

In this sample, we will create a simple navbar as header and footer components to demonstrate common page layout.

Modify the AppComponent template file app.component.html, which act as the template layout for all chidren components.

<app-navbar>
</app-navbar>
<h1>{{title}}
</h1>
<app-footer>
</app-footer>

I will try to use the same layout in my Angular 1.5 and ES6 sample.

In the project root folder, install bootstrap and Ng2Bootstrap(the Angular 2 compatible component and directives).

npm install ng2-bootstrap bootstrap@next --save 

You should includes the bootstrap css file. Angular CLI leaves some room to extend. Add the bootstrap css path in angular-cli.json.

//..."styles": ["styles.css","../node_modules/bootstrap/dist/css/bootstrap.min.css"],
//...	  

Follow official Angular 2 style guild, generate navbar and footer components in app/shared folder.

Enter app/shared folder, execute the following command.

ng g component navbar --flat

--flat tells ng command do not create a new folder for the created component.

It generates 4 files for navbar component, similar witht the former posts component.

Replace the template home of navbar.component.html file.

<nav class="navbar navbar-fixed-top navbar-light bg-faded"><div class="container"><a class="navbar-brand" [routerLink]="['/admin']" ><i class="fa fa-admin"></i>ANGULAR2 SAMPLE</a><button class="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" data-target="#exCollapsingNavbar" aria-controls="exCollapsingNavbar2"aria-expanded="false" aria-label="Toggle navigation">&#9776;</button><!-- Collect the nav links, forms, and other home for toggling --><div class="collapse navbar-toggleable-xs" id="exCollapsingNavbar"><ul class="nav navbar-nav"><li class="nav-item" [routerLinkActive]="['active']"><a class="nav-link" [routerLink]="['/posts']"  >{{'posts'}}</a></li><li class="nav-item" [routerLinkActive]="['active']"><a class="nav-link" [routerLink]="['/posts', 'new']"  >{{'new-post'}}</a></li><li class="nav-item" [routerLinkActive]="['active']"><a class="nav-link" [routerLink]="['/about']"  >{{'about'}}</a></li></ul><!-- /.navbar-collapse --></div></div><!-- /.container-fluid -->
</nav>

In this navbar template, it uses Bootstrap navbar component, and adds some links to different views. We will cover this links in Route section.

Similarly, generates footer component via:

ng g component footer --flat

Fill the following home in footer.component.html file.

<footer class="bg-faded" style="background-color: #e3f2fd;"><div class="container"><div class="row"><div class="col-md-6 "></div><div class="col-md-6">Copyright: HantsyLabs</div></div></div><!-- /.container-fluid -->
</footer>

Since Angular 2.0 RC, a new router module is introduced for reorganizing the application logic structure. To use them, we have to import them in AppModule and declares them in declarations property of NgModule annotation.

import {NavbarComponent} from './shared/navbar.component';
import {FooterComponent} from './shared/footer.component';@NgModule({
declarations:[NavbarComponent, FooterComponent]
})
export class AppModule{}

A more flexible approach is creating a SharedModule for these component fragments, directives, pipes, etc.

mport { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';import { NavbarComponent } from './navbar.component';
import { FooterComponent } from './footer.component';@NgModule({imports: [CommonModule,RouterModule],declarations: [NavbarComponent,FooterComponent],exports: [NavbarComponent,FooterComponent],
})
export class SharedModule { }

And import this module in AppModule.

import { SharedModule } from './shared/shared.module';
//...@NgModule({declarations: [AppComponent],imports: [//...SharedModule,//...}]
export class AppModule { }

When this application is reloaded, you will see the app component is decorated with navbar and footer.

Route

To navigate between pages, you have to define routing rules to make all page oriented components work.

Generates some samples components/modules for demonstration.

In the project root folder, generates a admin and an about modules.

ng g component admin
ng g module admin --routing

It will generate admin component files, and two an extra file: admin.module.ts and admin-routing.module.ts.

Declares AdminComponent in admin.module.ts.

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AdminRoutingModule } from './admin-routing.module';
import { AdminComponent } from './admin.component';@NgModule({imports: [CommonModule,AdminRoutingModule],declarations: [AdminComponent]
})
export class AdminModule { }

In admin.module.ts file, it imports another module file, admin-routing.module.ts.

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AdminComponent } from './admin.component';const routes: Routes = [{ path: 'admin', component: AdminComponent }
];@NgModule({imports: [RouterModule.forChild(routes)],exports: [RouterModule],providers: []
})
export class AdminRoutingModule { }

The routes defines the routing rules for this module, and we also wrap this definition in to a standard Angular 2 NgModule.

Create another sample module, named about.

ng g component about
ng g module about --routing

The home of about.module.ts:

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AboutRoutingModule } from './about-routing.module';
import { AboutComponent } from './about.component';@NgModule({imports: [CommonModule,AboutRoutingModule],declarations: [AboutComponent]
})
export class AboutModule { }

The home of about-routing.module.ts:

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';import { AboutComponent } from './about.component';const routes: Routes = [{ path: 'about', component: AboutComponent }
];@NgModule({imports: [RouterModule.forChild(routes)],exports: [RouterModule],providers: []
})
export class AboutRoutingModule { }

We have added admin and about link in navbar. Two directives are used: routerLink and routerLinkActive. routerLink will process the target route and routerLinkActive will toggle css class when the link is active or not.

Import these modules into app.module.ts.

import { AdminModule } from './admin/admin.module';
import { AboutModule} from './about/about.module';@NgModule({//...imports: [//...AdminModule,AboutModule],

Do not forget add route-outlet directive into app.component.html file.

<app-navbar></app-navbar>
<div class="page"><div class="container"><router-outlet></router-outlet></div>
</div>
<app-footer></app-footer>

Add css to adjust the default layout, add the following into styles.css.

.page {margin-top: 80px;min-height: 600px;
}

Now run this application again, you could navigate between admin and about via links in navbar.

Loading module lazily

By default, as above settings, all modules will be loadded when application is started.

The new router supports loading modules lazily as possible.

Generates more componets in posts folder, such as new-post, post-details, edit-post.

ng g component new-post --flat
ng g component edit-post --flat
ng g component post-details --flat

Add these modules into posts.module.ts.

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {FormsModule} from '@angular/forms';import { PostsRoutingModule } from './posts-routing.module';
import { PostsComponent } from './posts.component';
import { NewPostComponent } from './new-post.component';
import { EditPostComponent } from './edit-post.component';
import { PostDetailsComponent } from './post-details.component';@NgModule({imports: [CommonModule,FormsModule,PostsRoutingModule],declarations: [PostsComponent,NewPostComponent,EditPostComponent,PostDetailsComponent]
})
export class PostsModule { }

And defines routing rules in posts-routing.module.ts.

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';import { PostsComponent } from './posts.component';
import { NewPostComponent } from './new-post.component';
import { EditPostComponent } from './edit-post.component';
import { PostDetailsComponent } from './post-details.component';const routes: Routes = [{ path: '', redirectTo: 'admin' },{ path: 'admin', component: PostsComponent },{ path: 'new', component: NewPostComponent },{ path: 'edit/:id', component: EditPostComponent },{ path: 'view/:id', component: PostDetailsComponent },
];@NgModule({imports: [RouterModule.forChild(routes)],exports: [RouterModule],providers: []
})
export class PostsRoutingModule { }

In app-routing.module.ts file, add:

const routes: Routes = [{ path: '', redirectTo: '/admin', pathMatch: 'full' }{ path: 'posts', loadChildren: 'app/posts/posts.module#PostsModule' },
];

The first routing defines an empty path property, it means this is the default path of this application. It will redirectTo /admin(the path of AdminComponent).

The second routing rule uses the lazy way to load PostsModule when navigates /posts prefix urls. At runtime, it will append /posts as prefix to all urls defined in the posts-routing.module.ts file.

You can add another routing to process the notfound path, use ** as path value, put this definition at the last postion of the routes array.

{ path: '**', component:PageNotFoundComponent}

Now try to navigate posts and new-post links in navbar, and notice the network tracking in your Chrome developer tools.

Display post list

Open src\app\posts\posts.components.ts file, add posts data in ngOnInit method.

export class PostsComponent implements OnInit {posts: Post[];constructor() { }ngOnInit() {this.posts = [{id: 1,title: 'Getting started with REST',home: 'Home of Getting started with REST',createdAt: '9/22/16 4:15 PM'},{id: 2,title: 'Getting started with AngularJS 1.x',home: 'Home of Getting started with AngularJS 1.x',createdAt: '9/22/16 4:15 PM'},{id: 3,title: 'Getting started with Angular2',home: 'Home of Getting started with Angular2',createdAt: '9/22/16 4:15 PM'},];}
}

Creat a new file src\app\posts\post.model.ts, it is a model class wrap the Post fields.

export interface Post {id?: number;title: string;home: string;createdAt?: string;createdBy?: string;
}

Add import in src\app\posts\posts.component.ts.

import {Post} from './post.model';

Open src\app\posts\posts.components.html.

<div class="card"><div class="card-block bg-faded"><div class="row"><div class="col-md-9"><form class="form-inline" (ngSubmit)="search()"><div class="form-group"><input type="text" name="q" class="form-control" [(ngModel)]="q" /></div><button type="submit" class="btn btn-outline-info">{{'search'}}</button></form></div><div class="col-md-3"><span class="pull-md-right"><a class="btn btn-success" [routerLink]="['/posts', 'new']">new-post</a></span></div></div></div>
</div><div class="row"><div class="col-md-6" *ngFor="let post of posts "><div class="card card-block"><h4 class="card-title">{{post.title}}</h4><h6 class="card-subtitle text-muted">{{post.createdAt|date:'short'}}</h6><p class="card-text">{{post.home}}</p><div class="text-md-right"><a [routerLink]="['/posts', 'edit', post.id]">edit</a><a [routerLink]="['/posts', 'view', post.id]">view</a></div></div></div>
</div>

Save all files, when application is reloaded, navigate to http://localhost:4200/posts, you should see the following screen.

Posts works

Try to click the edit and view links in each post card. It should route to the right component view.

Component lifecycle hooks

In PostsComponent, there is a ngOnInit method which is from OnInit interface and it will be invoked when the component is initialized.

Inversely, when the component is being destroyed, there is a hook named OnDestroy which has a method ngOnDestroy which will be called.

Besides these generic lifecycle hooks, there are some other specific hooks available in Angular 2 for component lifecycle. Please read the official lifecycle hooks.

Summary

In this post, we created some components, and create a common layout for the chidren components. Also experienced the new Angular Router and used it to navigate between master view(PostsComponent) and details view(PostDetailsComponent).

转载于:https://my.oschina.net/hantsy/blog/857099

查看全文
如若内容造成侵权/违法违规/事实不符,请联系编程学习网邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

相关文章

  1. 从BroadcastReceiver中启动activity

    实现功能: 点击FirstActivity中的按钮,发送广播,然后BroadcastReceiver接收广播,并启动SecondActivity.主要实现: 为FirstActivity中的按钮button注册的点击事件: button.setOnClickListener(new OnClickListener() {@Overridepublic void onClick(View arg0) {// TODO A…...

    2024/5/2 0:34:34
  2. 项目总结(5)关于angular中的constant()的方法和

    starter.constant("CONFIG",Object.assign(router,modules_config,config)); 说实话&#xff0c;当看到配置文件中的这段代码我是懵的&#xff0c;这段代码该怎么理解呢&#xff1f;很是费解&#xff0c;于是我就去百度了一下&#xff0c;并且分化瓦解了一下。所以我…...

    2024/5/1 21:40:37
  3. 《Angular4从入门到实战》学习笔记

    《Angular4从入门到实战》学习笔记 腾讯课堂&#xff1a;米斯特吴 视频讲座 二〇一九年二月十三日星期三14时14分 What Is Angular?&#xff08;简介&#xff09; 前端最流行的主流JavaScript框架&#xff1b; 由谷歌倾情打造并维护&#xff1b; 致力于构建单页面应用(SPA)…...

    2024/4/20 20:07:43
  4. angular2+tinymce+prism 富文本编辑器(多图上传,代码高亮)

    文章目录背景参考地址版本使用安装步骤插件自定义上传文件(配置信息)汉化(配置信息)自动调整高度(配置信息)代码块配置信息问题: 页面展示中没有代码高亮地址问题发现解决方案(使用prism)客官可以自行选择需要的主题选择需要的语言index.html添加引用函数多图上传(第三方插件,非…...

    2024/5/2 4:08:29
  5. angular 入门教程1

    使用angularjs也有一年之久了。从初识angularjs时的激动和兴奋到现在淡定的使用&#xff0c;这其中也是有不少的心酸&#xff08;刚用的时候和各种js插件的配合使用快把我弄疯了&#xff09;。 细想起来。用MVVM的这种js框架也有3年之久了。从最初的knockout到现在的angularjs&…...

    2024/5/2 1:50:56
  6. Angular最新教程-第十节 路由三(路由器钩子函数、路由守卫)

    我们在实际开发中&#xff0c;会有这样一种场景。 有些页面是允许访客登录的&#xff0c;有些页面是强制用户登录的。 后者&#xff0c;我们希望当用户没有登录的时候&#xff0c;无法直接进去页面&#xff0c; 而是先跳转到登录页面&#xff0c;或者先给出让用户登录的提示…...

    2024/5/2 2:48:34
  7. angular 安装batarang踩到的那些坑儿

    angularjs作为一个新兴的JavaScript框架&#xff0c;因其具有不少新特性&#xff0c;比如mvc开发模块&#xff0c;双向数据绑定等等&#xff0c;使其名声大噪。我也久闻其大名&#xff0c;然而因为时间问题&#xff0c;一直都没有去接触过他。这几天工作室那边不是特别忙&#…...

    2024/5/2 0:52:29
  8. Angular最新教程-第九节 路由二(路由策略、base标签、路由参数)

    路由策略 我们上一节课中提到了{provide:LocationStrategy,useClass:HashLocationStrategy} 上一节课中我们说明了html中传统的锚标示路由。 这里我们再看新的路由的另一种实现方式了。 是HTML5的新规则,在不需要刷新页面的轻快下,允许在代码中创建新的浏览器记录并显示适…...

    2024/5/1 23:21:08
  9. ionic + angular开发篇之踩坑集

    一、API篇 1.接口无法访问 百度地图、自定义API无法访问&#xff0c;远程调试结果显示404 原因是cordova 5.x的版本增加了“Content-Security-Policy”用于解决安全访问的问题。默认情况下&#xff0c;只能访问本机资源。 解决方法&#xff1a; 1.添加白名单插件&#xff0c;在…...

    2024/5/1 21:38:13
  10. angular2.x 下拉多选框选择组件

    angular2.x - 5.x 的下拉多选框选择组件 ng2 -- ng5。最近在学angular4&#xff0c;经常在交流群看见很多人问 下拉多选怎么做。。。 今天就随便写的个。 组件源码 百度云 链接: https://pan.baidu.com/s/1SHV4_ccNPXyqpyEQZ8QQGg 密码: 2uv4 下面贴代码&#xff1a; 界面 引…...

    2024/5/2 0:42:19
  11. Angular C SP 抛出 eval () 问题解决方法。

    背景&#xff1a;在将项目部署到云平台时&#xff0c;运行抛出异常。异常如下。 Uncaught EvalError: Refused to evaluate a string as JavaScript because unsafe-eval is not an allowed source of script in the following Content Security Policy directive: "scrip…...

    2024/4/21 3:24:48
  12. Angular最新教程-第十四节 指令 结构型指令 属性型指令 自定义指令

    在 Angular 中有三种类型的指令: 组件 — 拥有模板的指令 结构型指令 — 通过添加和移除 DOM 元素改变 DOM 布局的指令 属性型指令 — 改变元素、组件或其它指令的外观和行为的指令。 组件 组件就是拥有模板的指令,这个我们在第五节编写第一个组件中就已经牛刀小试过了。…...

    2024/4/21 3:24:46
  13. 关于Ng-alain的Acl的使用

    前言 近来使用angular总是做后台系统&#xff0c;找了很久找到Ng Alain这个框架&#xff0c;用的还蛮顺手。就是官方文档略微简洁了点&#xff0c;用的过程中得不断结合一些小例子和官方demo来确定使用语法。之前的使用还一直挺顺利&#xff0c;哪怕有点问题网上也能找到相关问…...

    2024/5/1 23:28:22
  14. Auto.JS实现抖音,刷宝等刷视频app,自动点赞,自动滑屏,自动切换视频

    Auto.js 是个基于 JavaScript 语言运行在Android平台上的脚本框架。Auto.js主要工作原理是基于辅助服务AccessibilityService。 Auto.js是利用安卓系统的“辅助功能”实现类似于按键精灵一样&#xff0c;可以通过代码模拟一系列界面动作的辅助工作。 因为是开源框架所以安全性很…...

    2024/5/2 4:44:56
  15. 前端学习资料 百度云盘

    1.ps 链接: https://pan.baidu.com/s/1i5oUJbv 密码: 9qjc 2.html5 css3 链接: https://pan.baidu.com/s/1dFen9uD 密码: h636 3.javasript 链接: https://pan.baidu.com/s/1o76Lpv8 密码: m3cq 4.jquery 链接: https://pan.baidu.com/s/1bQg6Ii 密码: w7wv 5.bootstrap 链…...

    2024/5/2 4:45:16
  16. 我在阿里云做前端

    前言 今年是我毕业的第10个年头&#xff0c;半路出家做了前端&#xff0c;title一直是前端&#xff0c;你可以说我很专注&#xff0c;有时候也有些遗憾。一直以来&#xff0c;当别人问起你是做什么的&#xff0c;我说前端或者全栈&#xff0c;别人说&#xff1a;哦&#xff0c…...

    2024/5/1 23:34:15
  17. 52abp框架asp.net core Angular快速开发实战视频教程

    课程标题 52abp框架asp.net core & Angular全栈开发实战视频课程 课程简介 从零开始学 52ABP企业开发框架&#xff0c;企业项目是如何开发和技术选型&#xff0c;代码如何管理&#xff0c;团队协同开发。Angular和.net core是如何结合的&#xff0c;当前处于迷茫或者 技术进…...

    2024/5/2 4:51:41
  18. 前端和后端终极学习视频(百度网盘资料)

    (前台) 1.ps 链接: https://pan.baidu.com/s/1mjYbcJA 密码&#xff1a;pqdt 2.HTML5CSS3从入门到精通.iso 链接:https://pan.baidu.com/s/1mjYbcJA 密码&#xff1a;gdyw 3.Javascript视频教程 链接: https://pan.baidu.com/s/1i6eC5YP 密码&#xff1a;ku5k 4.Jquery视频教程…...

    2024/4/21 3:24:41
  19. 52abp框架asp.net core Angular全栈开发实战视频课程

    课程标题 52abp框架asp.net core & Angular全栈开发实战视频课程 课程简介 从零开始学 52ABP企业开发框架&#xff0c;企业项目是如何开发和技术选型&#xff0c;代码如何管理&#xff0c;团队协同开发。Angular和.net core是如何结合的&#xff0c;当前处于迷茫或者 技术进…...

    2024/4/21 3:24:41
  20. Angular最新教程-第六节编写响应式导航栏

    这节课我们讲解如何使用bootstrap 4 编写响应式布局。 参考图我们还是参照Angular中文社区http://www.angularjs.cn/ 图中标注红色的部分,我自己不是很喜欢,所以做了一点小改动。 他这里也没有做响应式布局,所以样式就不抄他的,我们自己重写。 首先我们先简要的分析一…...

    2024/4/20 4:08:25

最新文章

  1. Typora+PicGo+阿里云OSS搭建个人博客图床(2024最新详细搭建教程)

    创作者&#xff1a;Code_流苏(CSDN) 目录 一、什么是图床&#xff1f;二、准备工作三、配置PicGo四、配置Typora五、使用 很高兴你打开了这篇博客&#xff0c;如有疑问&#xff0c;欢迎评论。 更多好用的软件工具&#xff0c;请关注我&#xff0c;订阅专栏《实用软件与高效工具…...

    2024/5/2 6:48:45
  2. 梯度消失和梯度爆炸的一些处理方法

    在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言&#xff0c;在此感激不尽。 权重和梯度的更新公式如下&#xff1a; w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...

    2024/3/20 10:50:27
  3. Ubuntu磁盘扩容

    使用 df -h命令查看系统磁盘控件的使用情况&#xff1a; [samspobosrv:~]$ df -h Filesystem Size Used Avail Use% Mounted on udev 7.8G 0 7.8G 0% /dev tmpfs 1.6G 1.7M 1.…...

    2024/5/1 4:24:23
  4. 第十二届蓝桥杯省赛真题(C/C++大学B组)

    目录 #A 空间 #B 卡片 #C 直线 #D 货物摆放 #E 路径 #F 时间显示 #G 砝码称重 #H 杨辉三角形 #I 双向排序 #J 括号序列 #A 空间 #include <bits/stdc.h> using namespace std;int main() {cout<<256 * 1024 * 1024 / 4<<endl;return 0; } #B 卡片…...

    2024/5/1 3:56:21
  5. 【外汇早评】美通胀数据走低,美元调整

    原标题:【外汇早评】美通胀数据走低,美元调整昨日美国方面公布了新一期的核心PCE物价指数数据,同比增长1.6%,低于前值和预期值的1.7%,距离美联储的通胀目标2%继续走低,通胀压力较低,且此前美国一季度GDP初值中的消费部分下滑明显,因此市场对美联储后续更可能降息的政策…...

    2024/5/1 17:30:59
  6. 【原油贵金属周评】原油多头拥挤,价格调整

    原标题:【原油贵金属周评】原油多头拥挤,价格调整本周国际劳动节,我们喜迎四天假期,但是整个金融市场确实流动性充沛,大事频发,各个商品波动剧烈。美国方面,在本周四凌晨公布5月份的利率决议和新闻发布会,维持联邦基金利率在2.25%-2.50%不变,符合市场预期。同时美联储…...

    2024/4/30 18:14:14
  7. 【外汇周评】靓丽非农不及疲软通胀影响

    原标题:【外汇周评】靓丽非农不及疲软通胀影响在刚结束的周五,美国方面公布了新一期的非农就业数据,大幅好于前值和预期,新增就业重新回到20万以上。具体数据: 美国4月非农就业人口变动 26.3万人,预期 19万人,前值 19.6万人。 美国4月失业率 3.6%,预期 3.8%,前值 3…...

    2024/4/29 2:29:43
  8. 【原油贵金属早评】库存继续增加,油价收跌

    原标题:【原油贵金属早评】库存继续增加,油价收跌周三清晨公布美国当周API原油库存数据,上周原油库存增加281万桶至4.692亿桶,增幅超过预期的74.4万桶。且有消息人士称,沙特阿美据悉将于6月向亚洲炼油厂额外出售更多原油,印度炼油商预计将每日获得至多20万桶的额外原油供…...

    2024/4/30 18:21:48
  9. 【外汇早评】日本央行会议纪要不改日元强势

    原标题:【外汇早评】日本央行会议纪要不改日元强势近两日日元大幅走强与近期市场风险情绪上升,避险资金回流日元有关,也与前一段时间的美日贸易谈判给日本缓冲期,日本方面对汇率问题也避免继续贬值有关。虽然今日早间日本央行公布的利率会议纪要仍然是支持宽松政策,但这符…...

    2024/4/27 17:58:04
  10. 【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响

    原标题:【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响近日伊朗局势升温,导致市场担忧影响原油供给,油价试图反弹。此时OPEC表态稳定市场。据消息人士透露,沙特6月石油出口料将低于700万桶/日,沙特已经收到石油消费国提出的6月份扩大出口的“适度要求”,沙特将满…...

    2024/4/27 14:22:49
  11. 【外汇早评】美欲与伊朗重谈协议

    原标题:【外汇早评】美欲与伊朗重谈协议美国对伊朗的制裁遭到伊朗的抗议,昨日伊朗方面提出将部分退出伊核协议。而此行为又遭到欧洲方面对伊朗的谴责和警告,伊朗外长昨日回应称,欧洲国家履行它们的义务,伊核协议就能保证存续。据传闻伊朗的导弹已经对准了以色列和美国的航…...

    2024/4/28 1:28:33
  12. 【原油贵金属早评】波动率飙升,市场情绪动荡

    原标题:【原油贵金属早评】波动率飙升,市场情绪动荡因中美贸易谈判不安情绪影响,金融市场各资产品种出现明显的波动。随着美国与中方开启第十一轮谈判之际,美国按照既定计划向中国2000亿商品征收25%的关税,市场情绪有所平复,已经开始接受这一事实。虽然波动率-恐慌指数VI…...

    2024/4/30 9:43:09
  13. 【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试

    原标题:【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试美国和伊朗的局势继续升温,市场风险情绪上升,避险黄金有向上突破阻力的迹象。原油方面稍显平稳,近期美国和OPEC加大供给及市场需求回落的影响,伊朗局势并未推升油价走强。近期中美贸易谈判摩擦再度升级,美国对中…...

    2024/4/27 17:59:30
  14. 【原油贵金属早评】市场情绪继续恶化,黄金上破

    原标题:【原油贵金属早评】市场情绪继续恶化,黄金上破周初中国针对于美国加征关税的进行的反制措施引发市场情绪的大幅波动,人民币汇率出现大幅的贬值动能,金融市场受到非常明显的冲击。尤其是波动率起来之后,对于股市的表现尤其不安。隔夜美国股市出现明显的下行走势,这…...

    2024/4/25 18:39:16
  15. 【外汇早评】美伊僵持,风险情绪继续升温

    原标题:【外汇早评】美伊僵持,风险情绪继续升温昨日沙特两艘油轮再次发生爆炸事件,导致波斯湾局势进一步恶化,市场担忧美伊可能会出现摩擦生火,避险品种获得支撑,黄金和日元大幅走强。美指受中美贸易问题影响而在低位震荡。继5月12日,四艘商船在阿联酋领海附近的阿曼湾、…...

    2024/4/28 1:34:08
  16. 【原油贵金属早评】贸易冲突导致需求低迷,油价弱势

    原标题:【原油贵金属早评】贸易冲突导致需求低迷,油价弱势近日虽然伊朗局势升温,中东地区几起油船被袭击事件影响,但油价并未走高,而是出于调整结构中。由于市场预期局势失控的可能性较低,而中美贸易问题导致的全球经济衰退风险更大,需求会持续低迷,因此油价调整压力较…...

    2024/4/26 19:03:37
  17. 氧生福地 玩美北湖(上)——为时光守候两千年

    原标题:氧生福地 玩美北湖(上)——为时光守候两千年一次说走就走的旅行,只有一张高铁票的距离~ 所以,湖南郴州,我来了~ 从广州南站出发,一个半小时就到达郴州西站了。在动车上,同时改票的南风兄和我居然被分到了一个车厢,所以一路非常愉快地聊了过来。 挺好,最起…...

    2024/4/29 20:46:55
  18. 氧生福地 玩美北湖(中)——永春梯田里的美与鲜

    原标题:氧生福地 玩美北湖(中)——永春梯田里的美与鲜一觉醒来,因为大家太爱“美”照,在柳毅山庄去寻找龙女而错过了早餐时间。近十点,向导坏坏还是带着饥肠辘辘的我们去吃郴州最富有盛名的“鱼头粉”。说这是“十二分推荐”,到郴州必吃的美食之一。 哇塞!那个味美香甜…...

    2024/4/30 22:21:04
  19. 氧生福地 玩美北湖(下)——奔跑吧骚年!

    原标题:氧生福地 玩美北湖(下)——奔跑吧骚年!让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 啊……啊……啊 两…...

    2024/5/1 4:32:01
  20. 扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!

    原标题:扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!扒开伪装医用面膜,翻六倍价格宰客!当行业里的某一品项火爆了,就会有很多商家蹭热度,装逼忽悠,最近火爆朋友圈的医用面膜,被沾上了污点,到底怎么回事呢? “比普通面膜安全、效果好!痘痘、痘印、敏感肌都能用…...

    2024/4/27 23:24:42
  21. 「发现」铁皮石斛仙草之神奇功效用于医用面膜

    原标题:「发现」铁皮石斛仙草之神奇功效用于医用面膜丽彦妆铁皮石斛医用面膜|石斛多糖无菌修护补水贴19大优势: 1、铁皮石斛:自唐宋以来,一直被列为皇室贡品,铁皮石斛生于海拔1600米的悬崖峭壁之上,繁殖力差,产量极低,所以古代仅供皇室、贵族享用 2、铁皮石斛自古民间…...

    2024/4/28 5:48:52
  22. 丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者

    原标题:丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者【公司简介】 广州华彬企业隶属香港华彬集团有限公司,专注美业21年,其旗下品牌: 「圣茵美」私密荷尔蒙抗衰,产后修复 「圣仪轩」私密荷尔蒙抗衰,产后修复 「花茵莳」私密荷尔蒙抗衰,产后修复 「丽彦妆」专注医学护…...

    2024/4/30 9:42:22
  23. 广州械字号面膜生产厂家OEM/ODM4项须知!

    原标题:广州械字号面膜生产厂家OEM/ODM4项须知!广州械字号面膜生产厂家OEM/ODM流程及注意事项解读: 械字号医用面膜,其实在我国并没有严格的定义,通常我们说的医美面膜指的应该是一种「医用敷料」,也就是说,医用面膜其实算作「医疗器械」的一种,又称「医用冷敷贴」。 …...

    2024/4/30 9:43:22
  24. 械字号医用眼膜缓解用眼过度到底有无作用?

    原标题:械字号医用眼膜缓解用眼过度到底有无作用?医用眼膜/械字号眼膜/医用冷敷眼贴 凝胶层为亲水高分子材料,含70%以上的水分。体表皮肤温度传导到本产品的凝胶层,热量被凝胶内水分子吸收,通过水分的蒸发带走大量的热量,可迅速地降低体表皮肤局部温度,减轻局部皮肤的灼…...

    2024/4/30 9:42:49
  25. 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...

    解析如下&#xff1a;1、长按电脑电源键直至关机&#xff0c;然后再按一次电源健重启电脑&#xff0c;按F8健进入安全模式2、安全模式下进入Windows系统桌面后&#xff0c;按住“winR”打开运行窗口&#xff0c;输入“services.msc”打开服务设置3、在服务界面&#xff0c;选中…...

    2022/11/19 21:17:18
  26. 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。

    %读入6幅图像&#xff08;每一幅图像的大小是564*564&#xff09; f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...

    2022/11/19 21:17:16
  27. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...

    win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面&#xff0c;在等待界面中我们需要等待操作结束才能关机&#xff0c;虽然这比较麻烦&#xff0c;但是对系统进行配置和升级…...

    2022/11/19 21:17:15
  28. 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...

    有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows&#xff0c;请勿关闭计算机”的提示&#xff0c;要过很久才能进入系统&#xff0c;有的用户甚至几个小时也无法进入&#xff0c;下面就教大家这个问题的解决方法。第一种方法&#xff1a;我们首先在左下角的“开始…...

    2022/11/19 21:17:14
  29. win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...

    置信有很多用户都跟小编一样遇到过这样的问题&#xff0c;电脑时发现开机屏幕显现“正在配置Windows Update&#xff0c;请勿关机”(如下图所示)&#xff0c;而且还需求等大约5分钟才干进入系统。这是怎样回事呢&#xff1f;一切都是正常操作的&#xff0c;为什么开时机呈现“正…...

    2022/11/19 21:17:13
  30. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...

    Win7系统开机启动时总是出现“配置Windows请勿关机”的提示&#xff0c;没过几秒后电脑自动重启&#xff0c;每次开机都这样无法进入系统&#xff0c;此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一&#xff1a;开机按下F8&#xff0c;在出现的Windows高级启动选…...

    2022/11/19 21:17:12
  31. 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...

    有不少windows10系统用户反映说碰到这样一个情况&#xff0c;就是电脑提示正在准备windows请勿关闭计算机&#xff0c;碰到这样的问题该怎么解决呢&#xff0c;现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法&#xff1a;1、2、依次…...

    2022/11/19 21:17:11
  32. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...

    今天和大家分享一下win7系统重装了Win7旗舰版系统后&#xff0c;每次关机的时候桌面上都会显示一个“配置Windows Update的界面&#xff0c;提示请勿关闭计算机”&#xff0c;每次停留好几分钟才能正常关机&#xff0c;导致什么情况引起的呢&#xff1f;出现配置Windows Update…...

    2022/11/19 21:17:10
  33. 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...

    只能是等着&#xff0c;别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚&#xff0c;只能是考虑备份数据后重装系统了。解决来方案一&#xff1a;管理员运行cmd&#xff1a;net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...

    2022/11/19 21:17:09
  34. 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?

    原标题&#xff1a;电脑提示“配置Windows Update请勿关闭计算机”怎么办&#xff1f;win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢&#xff1f;一般的方…...

    2022/11/19 21:17:08
  35. 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...

    关机提示 windows7 正在配置windows 请勿关闭计算机 &#xff0c;然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;关机提示 windows7 正在配…...

    2022/11/19 21:17:05
  36. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...

    钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...

    2022/11/19 21:17:05
  37. 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...

    前几天班里有位学生电脑(windows 7系统)出问题了&#xff0c;具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面&#xff0c;长时间没反应&#xff0c;无法进入系统。这个问题原来帮其他同学也解决过&#xff0c;网上搜了不少资料&#x…...

    2022/11/19 21:17:04
  38. 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...

    本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法&#xff0c;并在最后教给你1种保护系统安全的好方法&#xff0c;一起来看看&#xff01;电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中&#xff0c;添加了1个新功能在“磁…...

    2022/11/19 21:17:03
  39. 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...

    许多用户在长期不使用电脑的时候&#xff0c;开启电脑发现电脑显示&#xff1a;配置windows更新失败&#xff0c;正在还原更改&#xff0c;请勿关闭计算机。。.这要怎么办呢&#xff1f;下面小编就带着大家一起看看吧&#xff01;如果能够正常进入系统&#xff0c;建议您暂时移…...

    2022/11/19 21:17:02
  40. 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...

    配置windows update失败 还原更改 请勿关闭计算机&#xff0c;电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;配置windows update失败 还原更改 请勿关闭计算机&#x…...

    2022/11/19 21:17:01
  41. 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...

    不知道大家有没有遇到过这样的一个问题&#xff0c;就是我们的win7系统在关机的时候&#xff0c;总是喜欢显示“准备配置windows&#xff0c;请勿关机”这样的一个页面&#xff0c;没有什么大碍&#xff0c;但是如果一直等着的话就要两个小时甚至更久都关不了机&#xff0c;非常…...

    2022/11/19 21:17:00
  42. 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...

    当电脑出现正在准备配置windows请勿关闭计算机时&#xff0c;一般是您正对windows进行升级&#xff0c;但是这个要是长时间没有反应&#xff0c;我们不能再傻等下去了。可能是电脑出了别的问题了&#xff0c;来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...

    2022/11/19 21:16:59
  43. 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...

    我们使用电脑的过程中有时会遇到这种情况&#xff0c;当我们打开电脑之后&#xff0c;发现一直停留在一个界面&#xff1a;“配置Windows Update失败&#xff0c;还原更改请勿关闭计算机”&#xff0c;等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢&#xff0…...

    2022/11/19 21:16:58
  44. 如何在iPhone上关闭“请勿打扰”

    Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...

    2022/11/19 21:16:57