To be or not to be.That is a question!

---源于莎士比亚的《哈姆雷特》

导航

2013年11月1日 #

Ember.js demo8

摘要: JS Bin /* @override http://localhost:8000/css/app.css *//* @override http://localhost:8000/css/app.css */body { font-family: sans-serif; background: #fff;}#master { position: absolute; left: 0; width: 200px; top: 0; bottom: 0; border-top: 1px solid #888;}#detail { position: ab... 阅读全文

posted @ 2013-11-01 10:49 Ijavascript 阅读(276) 评论(0) 推荐(0) 编辑

Ember.js demo6

摘要: Episode 5 body { margin-top: 30px }.active { color: red !important;}var App = Ember.Application.create();App.Router.map(function() { this.resource('user', {path: '/users/:user_id'}); this.resource('editUser', {path: '/users/:user_id/edit'});});App.ApplicationRoute = E 阅读全文

posted @ 2013-11-01 10:47 Ijavascript 阅读(199) 评论(0) 推荐(0) 编辑

Ember.js demo7

摘要: JS Bin body { font-family: sans-serif; color: #454545;}a { color: blue;}a.active { color: red;}var App = Ember.Application.create();App.Router.map(function() { this.resource('about', function() { this.route('product'); this.route('location'); }); this.resource('login' 阅读全文

posted @ 2013-11-01 10:45 Ijavascript 阅读(171) 评论(0) 推荐(0) 编辑

Ember.js demo5

摘要: Episode 5 body { margin-top: 30px }.active { color: red !important;}var App = Ember.Application.create();App.Router.map(function() { this.resource('user', {path: '/users/:user_id'}); this.resource('editUser', {path: '/users/:user_id/edit'});});App.ApplicationRoute = E 阅读全文

posted @ 2013-11-01 10:43 Ijavascript 阅读(167) 评论(0) 推荐(0) 编辑

Ember.js demo4

摘要: Episode 003 body { margin-top: 30px }.active { color: red !important;} var App = Ember.Application.create();App.Router.map(function() { this.resource('user', {path: '/users/:user_id'});});App.UserRoute = Ember.Route.extend({ model: function(params) { return users[params.user_id]; }}. 阅读全文

posted @ 2013-11-01 10:42 Ijavascript 阅读(213) 评论(0) 推荐(0) 编辑

Ember.js demo1

摘要: JS Bin var App = Ember.Application.create()App.name = "Hello World!";App.secondsOnPage = 0;setInterval(function() { App.set('secondsOnPage', App.get('secondsOnPage') + 1);}, 1000); 阅读全文

posted @ 2013-11-01 10:41 Ijavascript 阅读(287) 评论(0) 推荐(0) 编辑

Ember.js demo3

摘要: JS Bin var App = Ember.Application.create();App.ApplicationRoute = Ember.Route.extend({ model: function() { return users; }});var users = [ { id: 1, first: 'Ryan', last: 'Florence', avatar: 'https://si0.twimg.com/profile_images/3123276865/5c069e64eb7f8e971d36a4540ed7ca... 阅读全文

posted @ 2013-11-01 10:40 Ijavascript 阅读(234) 评论(0) 推荐(0) 编辑

Ember.js demo2

摘要: JS Bin var App = Ember.Application.create();App.ApplicationRoute = Ember.Route.extend({ model: function() { return { name: 'My App', timer: 0 }; }, activate: function() { this.interval = setInterval(function() { var timer = this.get('controller.model.timer'); this.set('contro... 阅读全文

posted @ 2013-11-01 10:39 Ijavascript 阅读(236) 评论(0) 推荐(0) 编辑