4
3

More than 5 years have passed since last update.

Backgridのサンプルをローカルで動かしてみた

Posted at

Backgrid.jsはBackbone.js用のグリッドライブラリ(MITライセンス)です。

Backgrid.jsのホームページにはサンプルがあるのですが、wyuenho/backgridにはサンプルのソースが含まれていません。

そこでホームページからHTMLを切り貼りしてローカルで動かしてみました。

デモ: http://hnakamur.github.io/backgrid-example/
ソース: https://github.com/hnakamur/backgrid-example/

ローカルで動かす時はファイルをブラウザで開いてURLがfile://〜の場合は以下のエラーが出ます。

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. application/json

nginxなどウェブサーバを立ててhttp://localhost/〜としてアクセスする必要があります。

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3