左辺にもブレスを書いて配列展開できる
[es6]
var arr = [1,2,3];
{ | |
"title": "my setting", | |
"rules": [ | |
{ | |
"description": "send esc and eisuu if capslock typed", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html lang="ja"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta http-equiv="Content-Style-Type" content="text/css"> | |
<meta http-equiv="Content-Script-Type" content="text/javascript"> | |
<title>IEだけでできること:呼び出し元の引数を壊す</title> | |
<script type="text/javascript" src="../js/lib/jquery-1.9.1.min.js"></script> | |
<link rel="stylesheet" type="text/css" href="../css/style.css"/> | |
</head> |
以下の文字を | |
Mon | |
Tue | |
Wed | |
Thu | |
Fri | |
Sat | |
Sun |
$(function({ | |
new Array(Number(["s".length, "".length, "".length].join(""))).toString().split(",").filter(function(val, index){ opera.postError(-~index); }); | |
}); |
$(function(){ | |
new Array(Number(["s".length, "".length, "".length].join(""))).toString().split(",").filter(function(val, index){ console.log(-~index); }); | |
}); |
$(function(){ | |
new Array(Number([~~true, ~~false, ~~false].join(""))).toString().split(",").filter(function(val, index){ console.log(-~index); }); | |
}); |
$(function(){ | |
var num = 0; | |
baseAry.forEach(function(index){ | |
num += 1; | |
console.log(num); | |
}); | |
}); |
$(function(){ | |
new Array(100).toString().split(",").filter(function(val, index){ console.log(-~index); }); | |
}); |
$(function () { | |
// 出力用配列 | |
var tmpAry = new Array(100); | |
var tmpAryString = tmpAry.toString(); | |
var aryString = tmpAryString.replace(/\,/g, "a@"); | |
var baseAry = aryString.split("@"); | |
// level1, level2: 再帰呼び出し | |
var recursive = function() { | |
function inner(a, b) { |