摘要:
jquery判斷checked的三種方法: .attr(‘checked’): //看版本1.6+返回:”checked”或”undefined” ;1.5-返回:true或false .prop(‘checked’): //16+:true/false .is(‘:checked’): //所有版
閱讀全文
摘要:
按住shift鍵的同時右鍵“文件夾”,然后選擇“屬性”,修改目標的文本為: %windir%\explorer.exe , *注意的是要加一個空格,然后加一個英文狀態下的逗號。 另外,也可以設置成自己的文件夾,如下: 設置打開為D盤的lwx207075文件夾 %SystemRoot%\explore
閱讀全文
摘要:
方法一: jQuery.fn.setApDiv=function () { //apDiv浮動層顯示位置居中控制 var wheight=$(window).height(); var wwidth=$(window).width(); var apHeight=wheight-$("#apDiv"
閱讀全文
摘要:
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Timepicker Demo</title> <link type="text/cs
閱讀全文
摘要:
看著以前自己寫的這些小例子,現在看看都有點覺得好笑,是自己以前不懂還是現在已經老了?但是自己還是轉存過來了,因為我喜歡。 jquery: $("input[name=add_group]").click(function() { if ($("#add_group_div").css("displa
閱讀全文
摘要:
jquery: function showCont() { switch ($("input[name=selector]:checked").attr("id")) { case "noperid": $("#noperid_div").show(); $("#variable_div").hid
閱讀全文
摘要:
Jquery加載的幾種方式 //①頁面加載完之前執行,與嵌入的js加載方式一樣 (function ($) { alert('start'); })(jQuery); //②頁面加載后執行 $(document).ready(function(){ alert('jquery ready'); })
閱讀全文