摘要:
1aaaaa.appcache:CACHE MANIFEST# 9891a09e51adaasdasdasd.htmlFALLBACK:NETWORK:* When the a.appcachefileischanged,then appCache.status will be changed; 阅读全文
摘要:
window.onload = function () { var img = new Image(); img.src = '1.gif'; var ctx = document.querySelector('#aa').getContext('2d'); img.onload = function () { ctx.drawImage(img, 0, 0, img.width, img.height, 0, 0, 400, 400); va... 阅读全文
摘要:
/** * Created with JetBrains WebStorm. * User: 宇乔 * Date: 13-8-2 * Time: 下午3:01 * To change this template use File | Settings | File Templates. */function Event(name) { var handlers = []; this.getName = function () { return name; } this.addHandler = function (handler) { han... 阅读全文
摘要:
阅读全文
摘要:
$(function () { // window['vm'] = {}; /*var nav = new G.nav('resources/data/nav.json'); nav.getViewModel(function (viewModel) { vm = viewModel; ko.applyBindings(vm); }) */ var items = function (item) { this.item = item; } var vm =... 阅读全文
摘要:
阅读全文
摘要:
阅读全文
摘要:
@baseColor: red;@switch: light; //dark// according the first param to call class. .mixin (dark, @color) { color: darken(@color, 10%);}.mixin (light, @color) { color: @color;}.mixin (@_, @color) { display: block;}//end//Guards begin// can used > >= = = .guards (@a) when (@a){} or .guards (@... 阅读全文
摘要:
(function () { "use strict"; WinJS.Binding.optimizeBindingReferences = true; var app = WinJS.Application; var activation = Windows.ApplicationModel.Activation; var storage = Windows.Storage; var imageFileNames = ["logo.png", "smalllogo.png"]; app.onactivated = function 阅读全文
摘要:
代码如下:html: App1 搜索js 代码:(function () { "use strict"; WinJS.Binding.optimizeBindingReferences = true; var app = WinJS.Application; var activation = Windows.ApplicationModel.Activation; var s = Windows.App... 阅读全文