This page has moved... Click here if you are not redirected.
This page has moved... Click here if you are not redirected.
MVC と言えば Apache Struts をはじめとするサーバサイド・フレームワークを想像しますが、 今回は JavaScript による大規模開発の際に採用されるクライアントサイド MVC フレームワーク「Backbone.js」の使い方についてまとめてみました。 (厳密にはクライアントサイドの場合、MVC とは呼ばず MVVM とか MV* とか呼ばれてるようです。) 前提 Backbone.js の構成を簡単に言ってしまうと 単一データの管理を行うモデル 複数件のモデルの管理を行うコレクション 画面の管理を行うビュー の3つの主要モジュールを軸に構成されており、Underscore.js、jQuery(Zepto)に依存するかたちで動作するようになっています。 利用の際は、underscore.js、jquery.js、backbone.js の順で読み込みます。 //cdnjs
The refactoring tales was a collection of articles about refactoring JavaScript applications that I put together many years ago with the eventual aim being to put them together into a book. Unfortunately that plan never materialised and the content now is rather outdated and not something that I'm actively working on. I don't recommend it as learning material now simply as so much has changed in t
Game save files are written into the Emscripten file system, which is by default an in-memory file system. Saved games will be lost when you close the web page. It is possible to interface other JavaScript code with the Emscripten file system to address this issue. Compiling in Windows is not supported. The build process requires a Unix-like environment due to use of GNU Autotools. See Emscripten
Stay Relevant and Grow Your Career in TechPremium ResultsPublish articles on SitePointDaily curated jobsLearning PathsDiscounts to dev toolsStart Free Trial7 Day Free Trial. Cancel Anytime. Key Takeaways A good front-end architecture is crucial for successful web development, ensuring the final product is responsive, maintainable, and performant. It also aids in structuring your code in a way that
Add Some Fun to Your Functional Programming With RXJS Ryan Anklam 1,168 views
The Flux pattern, without the globals Flux is a software pattern, not a concrete artifact like a library or framework. This has encouraged developers to create various implementations of the pattern. I’ve explained an approach to the Flux pattern often enough that I felt it was time to put it into a blog. The approach creates instances for the Flux actors instead of using singletons. Context I’ve
この記事はECMAScript 2015の事始めとして、ライブラリをECMAScript 2015で書いて公開するというところから始めるのがいいのではという内容です。 ECMAScript 2015(ES2015)はES6とも呼ばれていてどちらも同じものを指しますが、この記事ではES2015に統一します。 ECMAScriptのバージョンについては次のページを参照してください。 ECMAScript · JavaScriptの入門書 #jsprimer 2018-12-27: 追記 textlint/textlint-rule-helperのmasterはTypeScriptの実装へ変換されています。 Babelの実装はhttps://github.com/textlint/textlint-rule-helper/tree/2.0.1から参照できます Babel から TypeScrip
The upcoming SharedWorker API allows to transmit data across iframes and even browser tabs or windows. It landed in Chrome years ago, and not so long ago in Firefox, but it’s nowhere to be seen in IE or Safari. A wildly supported alternative exists that can be used today, but it’s largely unknown. Let’s explore it! I wanted an elegant solution to the following scenario: suppose a human walks into
GhostRunner is an app that when installed on a server allows the web based management and running of JavaScript files when combined with the GhostRunner.Server service. The standalone version is at http://goghostrunner.com and the new hosted version is at http://ghostrunner.io GhostRunner supports the definition of several script types (Git, Grunt, Node.js, PhantomJS and command line) which can be
<div id="vader"></div> <div id="luke"></div> <script src="path/to/theater.min.js"></script> <script> var theater = theaterJS(); theater .on("type:start, erase:start", function() { // add a class to actor's dom element when he starts typing/erasing var actor = theater.getCurrentActor(); actor.$element.classList.add("is-typing"); }) .on("type:end, erase:end", function() { // and then remove it when
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く