Angular和Ionic的路由跳转

一、Angular和Ionic的路由跳转

Angular的路由跳转:

       constructor(private router:Router){    }

       ....

       this.router.navigateByUrl('/product-list')

Ionic的路由跳转:

      constructor(private nav:NavController){   }

      ...

      this.nav.back()

 

响应消息的Content-Type:

      text/html

      text/css

      application/javascript

      application/json

       image/jpeg

       audio/mpeg3

请求消息的Content-Type:

      text/plain:请求数据是未经编码的普通文本。

      application/x-www-form-urlencoded:请求数据是经过编码的数据

      multipart/form-data:请求数据包含文件上传内容

      application/json:请求数据时JSON格式的字符串

    

posted @ 2020-02-15 13:02  平凡人的普通修仙之路  阅读(392)  评论(0编辑  收藏  举报