Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
"http://hoge.co.jp?test=testing&page=3".match(/\?.*$/); // matchの引数の中が正規表現 | |
// このように書くと、?test=testing&page=3の部分がマッチすることになる |
var App = App || {}; | |
App = { | |
api_root: "/api/", | |
api_key: "phe15557a001b1", | |
Model: function (api_name, condition) { | |
this.root = App.api_root; |
var json = { | |
test: "test" | |
} | |
json = JSON.stringify(json); | |
var form = "<form action='' method='post'>"; | |
form += "<input type='hidden' name='json' value='" + json +"' />"; |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; |