摘要: Most JavaScript developers are familiar with the for loop. One of the most common uses of the for loop is to iterate through the items in an array. In 阅读全文
posted @ 2015-03-21 22:01 Zhentiw 阅读(196) 评论(0) 推荐(0)
摘要: Leaflet Demo $.getJSON('//jsbin.com/qogati/1.js', renderMap);function renderMap (geoData) { var map = L.map('map'); var osm = '//{s}.tiles.mapb... 阅读全文
posted @ 2015-03-21 20:56 Zhentiw 阅读(328) 评论(0) 推荐(0)
摘要: Leaflet makes creating maps in the browserdead simple. With some HTML and 3 lines of JavaScript, we can quickly have a map displaying// create a map i... 阅读全文
posted @ 2015-03-20 23:16 Zhentiw 阅读(278) 评论(0) 推荐(0)
摘要: window.onload = function() { var canvas = document.getElementById("canvas"), context = canvas.getContext("2d"); var gradient =context.cre... 阅读全文
posted @ 2015-03-20 04:50 Zhentiw 阅读(301) 评论(0) 推荐(0)
摘要: window.onload = function() { var canvas = document.getElementById("canvas"), context = canvas.getContext("2d"), width = canvas.width = 600,... 阅读全文
posted @ 2015-03-19 23:39 Zhentiw 阅读(296) 评论(0) 推荐(0)
摘要: window.onload = function() { var canvas = document.getElementById("canvas"), context = canvas.getContext("2d"); context.beginPath(); c... 阅读全文
posted @ 2015-03-19 22:00 Zhentiw 阅读(398) 评论(0) 推荐(0)
摘要: HTML5 Canvas Graphics and Animation/** * Created by Answer1215 on 3/19/2015. */window.onload = function() { //var canvas = $("#canvas")... 阅读全文
posted @ 2015-03-19 21:34 Zhentiw 阅读(245) 评论(0) 推荐(0)
摘要: ng-html2js takes .html templates and converts them into strings stored in AngularJS's template cache. This allows you to bundle all of your templates ... 阅读全文
posted @ 2015-03-19 21:10 Zhentiw 阅读(671) 评论(0) 推荐(0)
摘要: The TypeScript compiler is a powerful tool which catches mistakes even in vanilla JavaScript. Try it online at theTypeScript Playground, zero setup re... 阅读全文
posted @ 2015-03-19 16:44 Zhentiw 阅读(276) 评论(0) 推荐(0)
摘要: Create a greeter.ts file:class Student { fullname : string; constructor(public firstname, public middleinitial, public lastname) { this.f... 阅读全文
posted @ 2015-03-19 16:37 Zhentiw 阅读(207) 评论(0) 推荐(0)