* サーバー側は、小松氏のこれをbloga.jp:80へ置いてあります。
* クライアント側はWS処理をjQueryプラグイン化してみました。これです。
* ちなみに、このDemoサンプルは、下記5行でローカルでも別ドメインでもどこにでも設置出来ます。
<script src="http://bloga.jp/ws/jq/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="http://bloga.jp/ws/jq/js/jquery.ws-0.3-noenc-pre.js" type="text/javascript" charset="utf-8"></script>
<script src="http://bloga.jp/ws/jq/conn/wschatdemo0.3.js" type="text/javascript"></script>
<script>/*サポートしてない時のalertメッセージを抑止*/$.ws.wsSetup({nonosupportmsg:true});</script>
<div id="wsdemos"></div>
【info】いつもいろいろなテストなどをページ内のあちこちでやっているので、重かったり、壊れていたりするf^^;ことも多いです。実験用ですので、カオス(混沌)をあえて意図したりもしますので、標準やValidとは無縁だったりしますが、何卒、ご了承ください ( _ _ b
【info】
最近はTwitterでぶつぶつ言ってることが多いです。
>http://twitter.com/toshirot
(function (){
//ここにスクリプト
})()
は、jQueryのDOM構築待ち構文の
$(function (){
//ここにスクリプト
})
と似ていますが、異なります。
function $(func){
//$の処理
}
function hoge2(){
//ここにスクリプト
}
$(hoge2)
こうしてみると、hoge2は、明らかに引数ですね。
jQueryは、このケースでは関数渡しを行っているのです。
var test = (function (arg){return {b: arg}})(new function(){this.a=1});
alert(test.b.a) ;
ヒント。分解するとこうなります。
var test = (
function (arg){
return {
b: arg
}
}
)(
new function(){
this.a=1
}
);
alert(test.b.a);
var test = (function (arg){
return {
b : arg
}
})(
new (function(c){
this.a = c
})(
(function(e){
return e
})(
(function(){
return
})(z=1) ||
(function(f){
return f
})(
(function(g){
return g
})(this.z)
)
)
)
);
alert(test.b.a);

視力回復手術は銀座スポーツクリニック
![]()
アスリートが選ぶレーシックは、銀座スポーツクリニック
夏休みのかみさんとまりもの帰省用にちょっと調査中---
≪国内格安航空券≫出張・帰省・旅行に最適
全国どこでも出発!国内格安航空券
| 日 | 月 | 火 | 水 | 木 | 金 | 土 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |




