Vincent's Blog


  • Home

  • Categories

  • Archives

  • Tags

NativeScript - Button

Posted on 2016-04-11   |   In NativeScript
简单看下 button 吧 tap 事件 基本样式 文字(FormattedString) import {Component, ViewChild, ElementRef} from "angular2/core";import {Color} fro ...
Read more »

NativeScript - TabView

Posted on 2016-04-07   |   In NativeScript
TabView 是个重要的导航组建 <TabView #tab > <StackLayout *tabItem="{title: 'FEATURED EXAMPLES'}"> <good></good> ...
Read more »

NativeScript - App LifeCycle

Posted on 2016-04-06   |   In NativeScript
说是LifeCycle 其实就是几个事件 这是配合angular2的主要就是lauch resume suspendexit事件我没看到触发过.可能是bug import {nativeScriptBootstrap} from "nativescript-angular/app ...
Read more »

NativeScript - 经典view-model解析

Posted on 2016-03-31   |   In NativeScript
本来想玩下React Native的…结果win上各种郁闷.但还是想看看移动端. 试下NativeScript:单纯的TS模板: viewModel import observable = require("data/observable");export class HelloWorldModel ...
Read more »

How JavaScript Event Delegation Works

Posted on 2016-03-29   |   In JS
看到不错就收录了原文地址:https://davidwalsh.name/event-delegate One of the hot methodologies in the JavaScript world is event delegation, and for good reason. Ev ...
Read more »

React - 组建Namespace

Posted on 2016-03-29   |   In React
个人觉得这个实践很好,所以单独拿出来记录一下 var Form = MyFormComponent;var App = ( <Form> <Form.Row> <Form.Label /> <Form.Input /> ...
Read more »

React - 简单的状态传递和事件处理

Posted on 2016-03-29   |   In React
对于组建内部的event处理.NG2 和react基本没啥不同都是在class内部用相应的function进行相应 var CommentForm = React.createClass({ getInitialState: function() { return  ...
Read more »

React - State - 状态管理

Posted on 2016-03-29   |   In React
昨天没遇到state,今天来了 we introduce mutable state to the component. this.state is private to the component and can be changed by calling this.setState(). Wh ...
Read more »

React - React版的*ngFor

Posted on 2016-03-28   |   In React
看看react怎么来用循环 NG2 => *ngFor let data = [ { id: 1, author: "Pete Hunt", text: "This is one comment" }, { id: 2, author: "Jord ...
Read more »

React - The First Try

Posted on 2016-03-28   |   In React
首先react也会有个root 组建,他的特征就是需要提供一个元素都selector (这里的ID) //this is the root component which including other compsclass CommentBox extends React.Component< ...
Read more »
<i class="fa fa-angle-left"></i>1…192021…29<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