Cheaper and faster than Uniswap? Discover Hawk Finance, the leading DEX on Binance Smart Chain (BSC) with the best farms in DeFi and a lottery for EGG.
RESTアクセスを行うJavaScriptライブラリ Jester Ver.1.2の変更点 JavaScript Rails REST 2007-05-05 Jester早速Ver 1.2出てたね、変更点をメモ 1) findがオプションでパラメータを受け付け、GETのクエリーストリングとして渡すように変更。 >>> User.find("all", {admin: true, toys: 5}) GET http://localhost:3000/users.xml?admin=true&toys=5 2) あわせてAjax用のコールバック関数も少し変更。三番目の引数としてハッシュを入れる、PrototypeのAjax.Requestと同じ形式でOK >>> User.find("all", {admin: true, toys: 5}, {onSuccess: success, on4
昨日のエントリJesterについて補足。 Jester.jsソースを見ると本当にシンプルで、まだ欲しい機能もありそうなので一通りまとめてみた。 基本的な登場人物はBaseクラス (prototype) だけ、あとXML.ObjTreというライブラリを使用してXML → DOM → XMLの変換を行ってるみたい。このライブラリ何気に日本人が作者なんだね、初めて知った。 以下まとめ 主なメソッド Base.model(モデル名, サーバURL, 単数形の名前, 複数形の名前) modelクラスの宣言。もしモデル名がBookなどで、単数形book & 複数形books のように単純な変化なら暗黙的に行ってくれる。 Base.model("Book") でOK。 例;Base.model("Book"); Base.find(目的のID) モデル名Book & 引数のidが1だとすれば http:
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く