Vincent's Blog


  • Home

  • Categories

  • Archives

  • Tags

Angular2 -outputs

Posted on 2015-12-29   |   In Angular2
Outputs 实例需求 内层组件的数据传到外层组件 外层组件获取数据并DOM变化 outputs: ['hoverImg'](mouseenter)="imgSelected() hoverImg: EventEmitter<string>; constructor() & ...
Read more »

Angular2 - pipes - sortBy

Posted on 2015-12-28   |   In Angular2
针对排序写的第一个pipe 主要功能:参数: 要排序的数组 需要排序的属性 (目前只对第一个参数排序) import {Pipe} from 'angular2/core';/** * * Example: * {{ products | sort ...
Read more »

Rxjs 初体验 with angular2

Posted on 2015-12-28   |   In Angular2
基本需求 search 框输入关键词 随着输入后台自动请求结果并显示 主要代码constructor(http: Http) { console.log(!!this.responseData.length); this.http = http; this.search ...
Read more »

Angular2 - minLenght

Posted on 2015-12-23   |   In Angular2
minLenght validator 源码解读 源码如下 static minLength(minLength: number): Function { return (control: modelModule.Control): {[key: string]: any&# ...
Read more »

An Overview of JavaScript Promises

Posted on 2015-12-18   |   In JS
OverviewA Promise object represents a value that may not be available yet, but will be resolved at some point in future. It allows you to write asynch ...
Read more »

backStack 导航历史

Posted on 2015-12-18   |   In JS , WinJS
WinJS.Navigation.history下面有3个object current location ex; /page/hello/hello.html backStack 这里面是object的数组。每当navigation后,这个path会自动加入到backStack里,如果不进行 ...
Read more »

Ready 初认识

Posted on 2015-12-18   |   In JS
ready: function (element, options) element —- 就是初始本页的pageControl 的html。 当进入ready的时候说明基本的html已被加载,并且control都已经初始化完毕 当没有加载css 文件。 也没有加载数据中的control optio ...
Read more »

app级全局数据的临时存储

Posted on 2015-12-18   |   In JS , WinJS
MyApp.Utilities.SessionState 例子 // Save the session state var sessionState = MyApp.Utilities.SessionState[this._pageTitle]; if ( ...
Read more »

FE Grid 参考线

Posted on 2015-12-18   |   In Tools
x, y 为自定义画线的参数 clear–是否清空 grid 不 clear 就会自动保存划线历史 100px 间距 //helper method for FE align work _gridCanvas: null, setGridLine: function (x, ...
Read more »

跳转间binding 错误

Posted on 2015-12-18   |   In JS , WinJS
page A element M 和 Page B 的 element M A 跳转B 的时候 有可能发生 想binding B 的M 但实际却 binding 了A 的M, 致使 B 中 M 没有binding到数据 解决办法 再Enter 里写代码,减小发生几率 var interVa ...
Read more »
<i class="fa fa-angle-left"></i>1…26272829<i class="fa fa-angle-right"></i>
Vincent Guo

Vincent Guo

the blog to remeber all things about code

290 posts
44 categories
103 tags
RSS
github twitter facebook google weibo
Links
  • KunLin
  • Rx Introduction
  • 三哥
  • 元龙
© 2024 Vincent Guo
Powered by Hexo
Theme - NexT.Mist