よく使うコマンドめも
# 初期化
cfx init
# テスト実行
* { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
} | |
body { | |
background: #ddf; | |
font: 30px sans-serif; | |
} |
* { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
} | |
body { | |
background: #dfd; | |
font: 30px sans-serif; | |
} |
よく使うコマンドめも
# 初期化
cfx init
# テスト実行
(function(){ | |
var id = 'nikukyu'; | |
sessionStorage.setItem(id, JSON.stringify({msg:[]})); | |
var makebtn = function(){ | |
var btn = document.createElement("button"); | |
btn.innerText = "メモAdd"; | |
btn.onclick=function(e){ | |
var ary = JSON.parse(sessionStorage.getItem(id)).msg; | |
var msg =e.srcElement.parentElement.querySelector('.clearfix').innerText; | |
ary.push(msg); |
var wsx = new WebSocket('ws://' + location.host); | |
wsx.onopen = function(e){console.log('onopen',e);}; | |
wsx.onmessage = function(e){console.log('onmessage',e)}; | |
wsx.onclose = function(e){console.log('onclose',e)}; | |
wsx.onerror = function(e){console.log('onerror',e)}; |
name | value | |
---|---|---|
A | 100 | |
B | 200 | |
C | 250 | |
D | 300 |