Time of Update: 2017-01-19
jQuery多級列表樹外掛程式基於Twitter Bootstrap,以簡單和優雅的方式來顯示一些繼承樹結構,如視圖樹、列表樹等等。實用Bootstrap樹形菜單特效外掛程式Bootstrap Tree View,非常不錯的Bootstrap外掛程式,現在很多Bootstrap製作的頁面都需要此功能,此外掛程式需要Bootstrap3版本以及jQuery 2.0極以上版本支援,支援眾多參數自訂功能,顏色、背景色、表徵圖、連結等,還是很不錯的。效果圖:具體使用方法:外掛程式依賴Bootstrap
Time of Update: 2017-01-19
document.title //設定文檔標題等價於HTML的title標籤 document.bgColor //設定頁面背景色 document.fgColor //設定前景色彩(文本顏色) document.linkColor //未點擊過的連結顏色 document.alinkColor //啟用連結(焦點在此連結上)的顏色 document.vlinkColor //已點擊過的連結顏色 document.URL //設定URL屬性從而在同一視窗開啟另一網頁
Time of Update: 2017-01-19
執行個體如下:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;
Time of Update: 2017-01-19
在html中引入外部js檔案,並調用js檔案中的帶參函數1 項目結構2 編寫a.js、test.html//a.jsfunction abc(str){ alert(str);}//test.html<html><head><script type="text/javascript" src="a.js"></script><script type="text/javascript"> window.onload =
Time of Update: 2017-01-19
Script Code 複製代碼 代碼如下:Const xpRangeAutoFormatList2 = 11 Set objExcel = CreateObject("Excel.Application") objExcel.Visible = True Set objWorkbook = objExcel.Workbooks.Add()&
Time of Update: 2017-01-19
Description Returns the name and product code of binary information (such as bitmaps, icons, executable files, and so on) used by a Windows
Time of Update: 2017-01-19
DescriptionReturns information about the Internet proxy server used by a computer. Supported PlatformsWindows Server 2003YesWindows XPYesWindows 2000NoWindows NT 4.0NoWindows 98NoScript Codevar wbemFlagReturnImmediately = 0x10;var
Time of Update: 2017-01-19
初級讀物:《JavaScript進階程式設計》:一本非常完整的經典入門書籍,被譽為JavaScript聖經之一,詳解的非常詳細,最新版第三版已經發布了,建議購買。《JavaScript王者歸來》百度的一個Web開發專案經理寫的,作為初學者準備的入門級教程也不錯。中級讀物:《JavaScript權威指南》:另外一本JavaScript聖經,講解的也非常詳細,屬於中級讀物,建議購買。《JavaScript.The.Good.Parts》:Yahoo大牛,JavaScript精神領袖Douglas
Time of Update: 2017-01-19
大概半年前發表過一篇關於setTimeout和setInterval的文章,但是現在回去仔細一看發現其實存在很多不足以及錯誤。事實上,setTimeout和setInterval並沒有我們字面上理解的那麼簡單。要真正掌握並理解這兩個方法,還得從javascript的單線程機制說起。 【開門見山】setTimeout和setInterval是如何工作的呢?
Time of Update: 2017-01-19
例1在JS中,把 json 格式的字串轉成JSON對象,關鍵代碼複製代碼 代碼如下:json = eval('('+str+')'); 方法如下:複製代碼 代碼如下:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1
Time of Update: 2017-01-19
Js函數調用的方式有如下幾種情況:(1)具名函數直接調用 複製代碼 代碼如下:function foo() { } foo();(2)匿名函數通過引用來調用複製代碼 代碼如下: fooRef = function() { }fooRef();(3)沒有引用的匿名函數調用1複製代碼 代碼如下:(function() {}());(4)沒有引用的匿名函數調用2複製代碼
Time of Update: 2017-01-19
本文執行個體講述了Laravel5.1資料庫連接、建立資料庫、建立model及建立控制器的方法。分享給大家供大家參考,具體如下:前言:laravel建立資料庫,實際可以手動建立,如古老的phpmyadmin 等均可以。一、資料庫連接:在根目錄(laravel5.1下面有個.env檔案,如果沒有則會有個.env.example然後將此檔案修改成.env檔案即可)開啟檔案:找到:DB_HOST=127.0.0.1 //串連地址不使用localhostDB_DATABASE=homestead
Time of Update: 2017-01-19
複選框全選樣本複製代碼 代碼如下:<input type="checkbox" name="selectall" value=on onclick="selectAll()">function selectAll(form) { var obj = document.getElementsByName('selectall'); var cks = document.getElementsByTagName("input"); var ckslen =
Time of Update: 2017-01-19
本文分析了YII動態模型(動態表名)支援機制。分享給大家供大家參考,具體如下:給YII 架構增加動態模型支援Yii架構中的資料模型使用靜態機制,如果要使用模型方式操作某張資料表,就必須得事先建立資料表對應的模型類(位於 protected/models
Time of Update: 2017-01-19
複製代碼 代碼如下:<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Insert title here</title><script type='text/javascript' src='jQuery.js'></script><style type="text/css"
Time of Update: 2017-01-19
用wrapper封裝這樣在對象內外都可以訪問 複製代碼 代碼如下:function MapPool(){ function createMarker(name, lat, lng, state){ var marker = new AMap.Marker({ position : new AMap.LngLat(lng, lat),
Time of Update: 2017-01-19
淘寶的 NPM 鏡像是一個完整的npmjs.org鏡像。你可以用此代替官方版本(唯讀),同步頻率目前為 15分鐘 一次以保證盡量與官方服務同步。1.當前 registry.npm.taobao.org 是從 registry.npmjs.org 進行全量同步的.2.當前 npm.taobao.org 運行版本是: cnpmjs.org@0.4.13.系統運行在 Node.js@v0.11.12 上.使用說明可以通過定製的 cnpm (gzip 壓縮支援) 命令列工具代替預設的 npm:複製代碼
Time of Update: 2017-01-19
最近在學習使用angular,慢慢從jquery
Time of Update: 2017-01-19
Demonstration script that retrieves network adapter data from a computer, displays that data in a Microsoft Word document, and then saves the&nbs
Time of Update: 2017-01-19
document.createElement()是在對象中建立一個對象,要與appendChild() 或 insertBefore()方法聯合使用。其中,appendChild() 方法在節點的子節點列表末添加新的子節點。insertBefore() 方法在節點的子節點列表任意位置插入新的節點。 下面,舉例說明document.createElement()的用法。<div id="board"></div> 例1: 複製代碼 代碼如下: <script