⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// define a parent | |
var s = { | |
print: function(x) { | |
console.log(x); | |
} | |
} | |
s.print('Hello World'); | |
// now define a heir | |
var m = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
requirejs(['cordova.js'], | |
function () { | |
// start of require | |
// cordova is now available globally | |
var exec = cordova.require('cordova/exec'); | |
var app = { | |
// Application Constructor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request | |
- Or, request confirmation in the process - | |
<a href="posts/2" data-method="delete" data-confirm="Are you sure?"> | |
*/ | |
(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img src="http://musa-hw-cafe.qiniudn.com/Screen%20Shot%202014-10-16%20at%2011.12.12.png" width="320px" height="100px"/> | |
宝莲灯是位置感知服务的客户端。 | |
* 位置感知服务是什么? | |
基于近场通信技术,渲染实时室内地图,在消费场所,为消费者与消费者、消费者与商户提供基于位置服务的社交网络。 | |
* 典型应用场景 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html ng-app="ionicApp"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> | |
<title>Search directive example</title> | |
</head> | |
<body> | |
Example using ion-refresher for the "pull to refresh" effect
Forked from Ionic's Pen Pull To Refresh: 1.0.0-beta.11.
Forked from Tyler's Pen Pull To Refresh: 1.0.0-beta.11.
OlderNewer