Code Archive Skip to content Google About Google Privacy Terms
こんにちは、太田です。前回はJavaScriptの基礎的な部分を解説しました。今回はJavaScriptのクロージャについて解説します。クロージャはJavaScriptでは使用頻度が高く(意識して使用していなくとも、ほとんどの場合クロージャが使われています)、今後の連載の中でも積極的に使っていきますのでここで確実に理解してしまいましょう。 クロージャとは クロージャはその定義を説明されてもなかなか理解できないため、難しいものだと思われがちです。しかし、ソースコードを中心に見方を少し工夫すればすんなりと理解できると思います。 さて、クロージャの前に確認しておくべき基本事項があります。それは、JavaScriptでは関数を入れ子にできる、という点です。ある関数の中に別の関数を定義することができます。基本中の基本ですが、これがクロージャにおいてもっとも重要です。 では、それを踏まえて次のコー
Using algorithms to solve problems can be a wonderful option when the result must be 100% exact or if each decision must follow the same method. A different method might be required if performance is the most important consideration. Approaching a problem the proper way can often be the key to finding a solution that works. An algorithm is a term used in psychology to describe a few of these probl
Mibbit has shut down Hello users, We have made this decision because the site is no longer commercially viable, and the creator and the maintainer of Mibbit are both unable to keep the site up to date and relevent. After this date, all user data will be removed from our servers. Our recommended replacement service is Kiwi IRC. Check them out! They have a very similar service that is actively kept
Use Bespin Use Bespin on your sites You can download a release of Bespin Embedded. Add a script tag and a CSS file to your page and you can have the power of Bespin's editor right in your own apps! Documentation is included in the release, and you can also view the docs online. Register for Bespin No account? No problem! Click below to create an account. Registration is free.
It is always a good habit to keep a calendar lying around the house or keep one with you when you on the go. Not only does the calendar help you keep track of your date but also serve as a reminder to some events. With the technology improving, many of us are turning to mobile technology more and more and one might just prefer a similar version of an online calendar to keep track of things on the
npm install @fullcalendar/angular import { Component } from '@angular/core' import { CalendarOptions } from '@fullcalendar/angular' @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { calendarOptions: CalendarOptions = { initialView: 'dayGridMonth', events: [ { title: 'event 1', date: '2019-04-01' }, { title: 'e
Credits for music artists are on staff rolls of each games and here. Feel brave? So you're ready for the Dark side of Akihabara with experimental material! Uh-uh-uh! HTML5 is my Arcade. Akihabara is a major Tokyo shopping area for electronic, computer, anime, and otaku goods. You can find any sort of old & new videogames, starting from the 8-bit era to modern motion-sensing videogames. But is also
On this page I compare WebKits in order to prove that there is no “WebKit on Mobile” and to figure out which one is the best. My hope is that eventually I’m going to gain some insight in the “family tree” of all WebKits. This page only contains tests of CSS and JavaScript items that work in some WebKits but not in all. Adding more items, all of which are either supported by all or by none of the W
The most popular coding language for the web is javascript; so much so that since the advent of HTML5, it has now been officially accepted as the default standard. Javascript has moved beyond a smaller client-side browser-based language to become integrated not just for front-end design, but also for back-end server-side development. As a result there are has been a huge growth of Javascript libra
Click here to launch the experiment! (beware: sophisticated browser needed) HTML5 is getting a lot of love lately. With the arrival of FireFox 3.5, Safari 4 and the new betas of Google Chrome and Opera, browsers support some great new features including canvas and the new audio/video tags. Most interesting: modern mobile devices like the iPhone or Android-based phones also support new standards in
こんにちは、太田です。今回はGoogle Chrome拡張に使えるHTML5関連技術の3回目をお送りします。 前々回はcanvas、ドラッグ・アンド・ドロップ、前回はECMAScript5やCSS3の一部を取り上げましたが、今回はHTML5関連APIのWeb Storageと、HTML5とは外れますが、Desktop Notificationsを紹介します。Web StorageはHTML5関連の中でもIE8でサポートされているなど、実装が進んでいるAPIの一つです。Desktop Notificationsはウェブページや拡張からユーザーに積極的な通知を出すことができるAPIです。MacではGrowlというアプリケーションが有名ですが、Growlに相当する機能をブラウザベースで実現しています。 Web Storage Web Storageはブラウザ上で動作するキーバリューストアです。J
今回は,スクリプトのパッケージ化について学んでいきます。JavaScriptコーディングの際に,案件ごとに同じような処理を幾度となく繰り返し作っていませんか? 同じ処理なのであれば,汎用的に作っておいて,それを繰り返し使えるようにすれば便利です。 JavaScriptのコードは,書き方によって,その場限りの使い捨てにもなりますし,今後何度でも流用できる資産にもなりえます。できることなら,あなたがこれから記述するコードは,資産となるようにしたいものです。 jsファイルを処理ごとに分離する 一つのページに様々なアクションを加える場合,一つのjsファイルにすべてを詰め込んでしまうと,コードが長くなりわかりにくくなります。また,保守性の観点からも,できれば,機能単位ごとにjsファイルを分離して,それぞれが独立して動作するように設計したいものです。 しかし,ただ単にjsファイルを分離しただけでは問題
What is Autoppt.com? Autoppt, the ultimate AI PowerPoint maker. We’re committed to delivering the best AI PowerPoint generator, working tirelessly to perfect it. Just enter your topic, and our AI PPT generator instantly creates a beautifully designed AI slideshow. You can also upload documents such as Word or PDF files and use our extensive PowerPoint templates to generate AI presentations.
Not your computer? Use a private browsing window to sign in. Learn more
Try JetStream SunSpider is no longer maintained. We recommend JetStream, which tests the JavaScript techniques used by advanced web applications. ☀SunSpider 1.0.2 JavaScript Benchmark This is SunSpider, a JavaScript benchmark. This benchmark tests the core JavaScript language only, not the DOM or other browser APIs. It is designed to compare different versions of the same browser, and different br
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く