Dart Essentials
Getting Started
Practical Dart
- 为何DocumentFragment须要clone后再加进文档里去?(p162的样例没有)
- Dart 1.9+:async + await
- element.onClick.listen( (evt){...} ); //<--- Stream对象?
- `part`
- num, int, double
The Power of HTML5 with Dart
- use JS:JsFunction.apply() JsObject.callMethod()
- _jQuery = context['jQuery'];
- Dart Summit 2015? dart2js
- Completer?.complete(items); => .future()
- import 'dart:indexd_db' as idb; //可定义索引?有点像MongoDB
- event.preventDefault(); event.stopPropagation();
- WebAudio
- BiquadFilterNode?=> 分析器?
- typed_data
- SIMD(vector_math):Int32x4、Float32x4
- WebGL
- three.dart, StageXL*, Box2d & play_phaser
- Isolate在browser上用Web Worker实现?
Developing a Mobile App with Dart
- 300ms tap延迟:用meta viewport禁止
- transform-style: preserve-3d;
- *3D书架 with DeviceOrientation事件(.alpha/.beta/.gamma)
- GPS不精确:Kalman滤波?
Web Components with polymer.dart
- Web Components:Shadow DOM + Custom Elements + imports(M36+) + templates
- 代码演示样例:
- var tpl = linkElement.important.querySelector('#id');
- Node n = tpl.content.clone(true);
- ... targetDiv.createShadowRoot().append(n);
- document.registerElement('my-greeting', MyGreetingElement); <-- factory MyGreetingElement() => new Element.tag('my-greeting');
- MutationObserver*
- main() async { (await initPolymer()).run( (){...} );
- *一路数据绑定
- @customTag('one-way-book')
- class OneWayBookElement extends PolymerElement { ...
- 定制属性:if repeat
- *二路数据绑定(Angular的简单实现?)
- <core-list> 无限列表
AngularDart
- 3种bind:NgOneWay NgTwoWay NgAttr
- Angular 2.0:使用TypeScript的扩展AtScript辨析的?支持编译到Dart?
- 性能话题
- digest loop:对model的每一个变化?change会‘传播’...
- 不要嵌套ng-repeat,导致scopes泛滥
- <li ng-repeat="t in tasks | filter:term | orderBy:p track by t.id">
- dont't excess Formatter ...
Server-side apps with Dart
- main()多个一个args參数而已
Testing and Profiling
- 操作符重载?operator ==(Vector v) => ...
- Mixins(略)
- 測试AngularDart:Protractor/WebDriverJS(没有界面的浏览器)
Writing Native Extensions for the Standalone Dart VM
- 略