摘要: import {Http,Jsonp,Headers} from "@angular/http"; private headers = new Headers({'Content-Type': 'application/json'}); this.http.post('http://localhos 阅读全文
posted @ 2018-07-17 23:51 雨夜稻草 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1、通过 Http 同步请求: import {Http,Jsonp} from "@angular/http"; constructor(private http:Http,private jsonp:Jsonp) { } this.http.get("http://www.phonegap100 阅读全文
posted @ 2018-07-17 23:40 雨夜稻草 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1 、*ngFor 普通循环,并获取索引 <ul> <li *ngFor="let item of list;let i = index;"> {{item}} </li></ul> 2 、 template 循环数据 <ul> <li template="ngFor let item of lis 阅读全文
posted @ 2018-07-17 22:34 雨夜稻草 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 1、 数据文本绑定{{title}} 2、绑定 html this.h="<h2>这是一个 h2 用[innerHTML]来解析</h2>" <div [innerHTML]="h"></div> 3、绑定属性 <div [id]="id" [title]="msg">调试工具看看我的属性</div 阅读全文
posted @ 2018-07-17 22:27 雨夜稻草 阅读(109) 评论(0) 推荐(0) 编辑
摘要: <a class="btn btn-default changChick" onclick="changChick(this)">高</a> <a class="btn btn-default changChick" onclick="changChick(this)">中</a> <a class 阅读全文
posted @ 2018-07-09 21:48 雨夜稻草 阅读(3132) 评论(0) 推荐(0) 编辑
摘要: <div class="with_lineTitle"> <span class="line"></span> <span class="Tbox">我是标题</span> <span class="line"></span> </div> <style> .with_lineTitle{displ 阅读全文
posted @ 2018-07-04 23:42 雨夜稻草 阅读(1904) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title></ 阅读全文
posted @ 2018-07-04 22:56 雨夜稻草 阅读(137) 评论(0) 推荐(0) 编辑
摘要: imports: [ /*引入的模块 依赖的模块*/ BrowserModule, ComponentsModule, IonicModule.forRoot(MyApp,{ tabsHideOnSubPages: 'true', //隐藏全部子页面 tabs backButtonText: '返回 阅读全文
posted @ 2018-06-18 18:17 雨夜稻草 阅读(184) 评论(0) 推荐(0) 编辑
摘要: arc(x, y, radius, startRad, endRad, [anticlockwise]) 在Canvas画布上绘制以坐标点(x,y)为圆心、半么为radius的圆上的一段弧线。这段弧线的起始弧度是startRad,结束弧度是endRad。这里的弧度是以x轴正方向为基准、进行顺时针旋转 阅读全文
posted @ 2018-06-09 11:19 雨夜稻草 阅读(644) 评论(0) 推荐(0) 编辑
摘要: <div style="inbox"> <img src=""/> </div> <style> .inbox{ position:relative; padding-top:100%; width:100%; } .inbox img{ position:absolute; top:0px; le 阅读全文
posted @ 2018-06-08 00:27 雨夜稻草 阅读(718) 评论(0) 推荐(0) 编辑