4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

TextExpander JS(jQuery)の時短

Posted at

スクリーンショット 2014-02-19 3.52.40.png

##ID指定 これが一番良く使うかも
ショートカット → jid

jQuery
$(document.getElementById('%|'))

##JS書き始め指定
ショートカット → ;jsfunc

jQuery
(function(w, $) {
    "use strict";

})(window, jQuery);

##jQuery readyイベント
ショートカット → ;jqs

jQuery
$(function(){
	%|
});

jQuery読み込み CDN呼び出しのバージョン指定ポップアップ

ショートカット → ;jsjquery

jQuery
<script src="https://ajax.googleapis.com/ajax/libs/jquery/%filltext:name=version:default=1.10.2%/jquery.min.js" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
<!--

-->
</script>

##JSフロント書くときによく使う関数
;jsinit

jQuery
%filltext:name=オブジェクト名%.init = function () {

    %filltext:name=オブジェクト名%.setParam();

    %filltext:name=オブジェクト名%.setDom();
    
    %filltext:name=オブジェクト名%.setEvent();

};

%filltext:name=オブジェクト名%.setEvent = function () {
};

%filltext:name=オブジェクト名%.setDom = function () {
};

%filltext:name=オブジェクト名%.setParam = function () {
};

・ TextExpanderでFlash埋め込み一発コマンド(SWFObjectCDN付)
http://qiita.com/GENYA/items/2218225e28c5938c6338

・ JSログ吐く用ショートカット
http://qiita.com/GENYA/items/3f4fce544e302a521167

4
4
1

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
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?