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
var popopopoon = function() { | |
var nextId; | |
return function('引数') { | |
$.ajax({ | |
url:'', | |
data: { | |
hoge: nextId | |
} | |
success: function(data) { | |
//ここで、apiのレスポンスから次のapiに渡す値を取得 |
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
var code2name = function(){ | |
var mapping = { | |
'us': 'United States', | |
'ja': 'Japan', | |
'ko': 'Korea', | |
'ru': 'Russa', | |
'uk': 'United Kingdom', | |
'fr': 'France', | |
'cc': 'China', | |
'gw': 'Germany' |
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
( function(){ alert("hello"); } )(); // "hello"と出力 |
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
var speak = function (){ alert("hello"); } | |
speak(); // "hello"と出力 |
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
function speak(){ alert("hello"); } | |
speak(); // "hello"と出力 |
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
function outer(){ | |
var x = 1; | |
return function (){ // 無名関数 | |
alert(x); | |
x = x + 1; | |
}; | |
} | |
var f = outer(); | |
f(); // 1 |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<ti:app xmlns:ti="http://ti.appcelerator.org"> | |
<iphone></iphone> | |
<android xmlns:android="http://schemas.android.com/apk/res/android"> | |
<manifest android:versionCode="1" android:versionName="1.0"> | |
<uses-permission android:name="android.permission.INTERNET"/> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | |
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> | |
</manifest> | |
</android> |