Sublime Text
昨天同事介紹給我的這個編輯器,試了一下真的很好用呢。
真的是繼notepad++之後名列第二個我最愛的編輯器了,介面好看也比較不傷眼睛,
folder資料夾管理也很好用,
用起來就很想學好東西(開玩笑的,沒這麼誇張xd)。
-推薦給正在尋找好用文字編輯器的朋友們。
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>搜尋框預設文字+點按後預設字消失</title>
<script src="http://code.jquery.com/jquery-latest.js"></script> <!--匯入jquery是必要項目-->
<style>
#target {color: #666;}
button{background: #555;coloR: #fff;}
</style>
<script type="text/javascript">
$(function(){
$('#target').click(function() {
//$(this).val("");
$('input[name="target"]').val("");
});
});
</script>
</head>
<body>
<form>
<input id="target" name="target" type="text" value="type something" /> <button>search!</button>
</form>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>搜尋框預設文字+點按後預設字消失</title>
<style>
#target {color: #666;}
button{background: #555;coloR: #fff;}
</style>
</head>
<body>
<form>
<input id="target" name="target" type="text" placeholder="type something" /> <button>search!</button>
</form>
</body>
</html>
<script language="JavaScript">
var DIFFERENCE_HOUR,DIFFERENCE_MINUTE,DIFFERENCE_SEC =1;
var hoursms = 60 * 60 * 1000;
var Secondms = 60 * 1000;
var microsecond = 1000;
function clock()
{
var Expiration_time = new Date("2012/8/18 21:00:00"); //到期時間
var time = new Date();//取得現在的時間資料
var minute = time.getMinutes();//現在的分
var second = time.getSeconds();//現在的秒
//計算現在的時間資料與倒數標的之差異
var convertHour = DIFFERENCE_HOUR;
var convertMinute = DIFFERENCE_MINUTE;
var convertSecond = DIFFERENCE_SEC;
var Diffms = Expiration_time.getTime() - time.getTime();
DIFFERENCE_MINUTE = Math.floor(Diffms / hoursms);
Diffms -= DIFFERENCE_MINUTE * hoursms;
DIFFERENCE_SEC = Math.floor(Diffms / Secondms);
Diffms -= DIFFERENCE_SEC * Secondms ;
/*$('.day').html=""; $('.ho').html=""; $('.min').html="";*/ //div區塊內容初始化 可略
if(convertMinute != DIFFERENCE_MINUTE){$('.ho').html(DIFFERENCE_MINUTE)};
if(convertSecond != DIFFERENCE_SEC){$('.min').html(DIFFERENCE_SEC)};
var dSecs = Math.floor(Diffms / microsecond);
$('.sec').html(dSecs);
setTimeout("clock()",1000);//每1秒不斷自動呼叫 clock() 每秒更新一次
}
</script>
[cycle] 1 - img slide not loaded, requeuing slideshow: http://127.0.0.1/myweb/images/20110914-03.jpg 0 0
行數 :/myweb/js/jquery.cycle.all.latest.js:28
<html>
<head>
<title>練習</title>
<script type="text/javascript" src="js/jquery-1.6.min.js"></script>
<!-- include Cycle plugin -->
<script type="text/javascript" src="js/jquery.cycle.all.latest.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('#slideshow').cycle({
fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...source:http://jquery.malsup.com/cycle/basic.html
});
});
</script>
</head>
$(document).ready(function() {
$('#slideshow').cycle({
fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...source:http://jquery.malsup.com/cycle/basic.html
});
});
<div id="container">
<div id="slideshow">
<img src="images/20110914-03.jpg" alt="照片slideshow" />
<img src="images/002.jpg" alt="照片slideshow" />
</div>
</div>
<img src="images/20110914-03.jpg" alt="照片slideshow" />
<img src="images/002.jpg" alt="照片slideshow" />
<img src="images/20110914-03.jpg" alt="照片slideshow" width="500" height="200"/>
<img src="images/002.jpg" alt="照片slideshow" width="500" height="200"/>
//
width跟height屬性,只要其中一個有就可以運作。
要在畫面一進來 focus multiselect 的方式: 參考: https://jsfiddle.net/shentao/mnphdt2g/ 主要就是在 multiselect 的 tag 加上 ref (例如: my_multiselect), 另外在 mounted...