本文說明datepicker 中的 parseDate formatDate
其功能是對日期解析及對日期的格式設定
一、基本JS/HTML語法
JS:
$.datepicker.parseDate("yy/mm/dd", "2008/08/08");
$.datepicker.formatDate("yy/mm/dd", new Date(2008, 8 - 1, 8));
二、基本說明
本文說明datepicker 中的 parseDate formatDate
其功能是對日期解析及對日期的格式設定
一、基本JS/HTML語法
JS:
$.datepicker.parseDate("yy/mm/dd", "2008/08/08");
$.datepicker.formatDate("yy/mm/dd", new Date(2008, 8 - 1, 8));
二、基本說明
本文說明datepicker Options 中的 appendText altField altFormat autoSize dateFormat constrainInput
其是顯示月曆框的顯示格式、顯示地方、輸入框大小及格式限制
一、基本JS/HTML語法
JS:
$(function() {
$("#datepicker").datepicker({
appendText : "(西元年-月-日)",
altField : "#datepicker",
本文說明datepicker Options 中的showAnim效果種類
其效果會是顯示月曆框有效果
一、基本JS語法
設定option
$("#datepicker").datepicker("option", "showAnim", "bounce");
二、基本說明
.datepicker("設定種類option","參數KEY為showAnim","參數值為bounce")
三、本文程式內容
本文說明datepicker Options 中的showAnim showOptions duration
其效果會是顯示月曆框有效果
一、基本JS/HTML語法
JS:
$(function() {
$("#datepicker").datepicker({
showAnim : "bounce",
showOptions : {
本文說明jQuery UI有提供月曆樣式。
一、下載 jQuery UI 1.11.4 Themes
圖1 http://jqueryui.com/download/all/
圖2 jquery-ui-themes-1.11.4
圖3 Themes 資料夾的樣式種類
本文說明datepicker Options 中的buttonImage、buttonImageOnly
其效果會加入月曆icon小圖。
相關Options為:showOn、buttonText
參考:
一、基本JS/HTML語法
JS:
$(function() {
$("#datepicker").datepicker({
本文說明datepicker Options 中的showOn、buttonText
其效果會有一個button按鈕
一、基本JS/HTML語法
JS:
$(function() {
$("#datepicker").datepicker({
showOn : "button",
//設定button title and alt text
一、下載
jQuery UI 1.11.4 (concatenated JS and CSS files)
jQuery UI 1.11.4 Themes (這有其它的CSS樣式,這另文說明)
http://jqueryui.com/download/all/
圖1
二、下載後 解壓後找到index.html 這裡面會有範例。
圖2
PuTTY 遠端登入工具
一、進入PuTTY網頁
PuTTY: a free SSH and Telnet client
二、下載PuTTY
圖1 下載putty.exe
三、執行PuTTY
圖2 putty.exe 開啟PuTTY介面