Time of Update: 2015-02-01
標籤:只需要把下面代碼放到js中:$(function(){ //擷取要定位元素距離瀏覽器頂部的距離 var navH = $(".menu").offset().top; //捲軸事件
Time of Update: 2015-02-01
標籤:雅虎給出了最佳化網站載入速度的34條法則(包括Yslow規則22條) 詳細說明,下載轉寄 ponytail 的譯文(來自帕蘭映像)。1.Minimize HTTP Requests 減少HTTP請求圖片、css、script、flash等等這些都會增加http請求數,減少這些元素的數量就能減少回應時間。把多個JS、CSS在可能的情況下寫進一個檔案,頁面裡直接寫入圖片也是不好的做法,應該寫進CSS裡,利用 CSS sprites 將小圖拼合後利用background來定位。2.Use a
Time of Update: 2015-02-01
標籤:
Time of Update: 2015-02-01
標籤:介紹幾種常用的Image source 賦值方式:this.abc.Source = new BitmapImage(new Uri("/1.jpg", UriKind.RelativeOrAbsolute));Uri uri = new Uri("1.jpg", UriKind.Relative);ImageSource imgSource = new System.Windows.Media.Imaging.BitmapImage(uri);
Time of Update: 2015-02-01
標籤:unserialize的這個問題是由一個emlog論壇使用者在使用時報錯而發現的問題表現情況如下:emlog緩衝的儲存方式是將php的資料對象(數組)序列化(serialize)後以檔案的形式存放,讀取緩衝的時候直接還原序列化(unserialize)緩衝字串即可讀取資料。 我從使用者那裡取到的緩衝的序列化資料為:a:1:{s:8:"kl_album";a:4:{s:5:"title";s:12:"精彩瞬 間";s:3:"url";s:41:"http://www.kaisay.
Time of Update: 2015-01-31
標籤: Writer:BYSocket(泥沙磚瓦漿木匠) 微博:BYSocket 豆瓣:BYSocket Reprint it anywhere u want. 文章Points: 1. 認識XSS 2. XSS攻擊 3. XSS防禦(重點) 一、認識XSS先
Time of Update: 2015-01-31
標籤: CSS(Cascading Style
Time of Update: 2015-02-01
標籤:twisted靜態檔案的web伺服器from twisted.internet import reactorfrom twisted.web.server import Sitefrom twisted.web.static import Fileresource = File(‘C:\\‘)factory = Site(resource)react
Time of Update: 2015-02-01
標籤:twistedfrom twisted.internet import reactorfrom twisted.internet.task import deferLaterfrom twisted.web.resource import Resourcefrom twisted.web.server import Site, NOT_DONE_YE
Time of Update: 2015-02-01
標籤:twisted列印某個URL返回的內容from twisted.internet import reactorfrom twisted.web.client import getPageimport sysdef printPage(result): print resultdef printError(failure):
Time of Update: 2015-02-01
標籤:一:D3(Data-Driven Documents) 官網地址:http://d3js.org/ 功能非常強大(不支援IE8) D3
Time of Update: 2015-02-01
標籤:轉載請註明出處:jiq?欽‘s technical Blog非同步載入的意思就是: 當點擊展開樹節點時,才去請求後台action返回點擊節點的子節點資料並載入。這裡面主要設計ztree的setting變數的async屬性設定: var setting = { async: {enable: true,url:"InitServiceIpsData.action",autoParam:["id",
Time of Update: 2015-02-01
標籤:GFW臨幸,pip一蹶不振,不爭氣的pip還只支援http的代理。ss代理是socks的,監聽於1080連接埠, 於是我用privoxy這個工具轉換socks成http下載:http://download.csdn.net/detail/u010211892/8413677安裝完後該/usr/local/etc/privoxy/config檔案引用http://blog.newnaw.com/?p=616一段修改Privoxy的設定檔,找到listen-address這一行,將其修改為:“
Time of Update: 2015-02-01
標籤:轉載請註明出處:jiq?欽‘s technical
Time of Update: 2015-02-01
標籤:我在Twitter 中有看到如下selector: .show-grid [class*="span"] { background-color: #eee; text-align: center; border-radius: 3px; min-height: 30px; line-height: 30px;}有哪位童鞋知道這種寫法. 答: 這是一個屬性萬用字元selector. 在你提供的例子中,
Time of Update: 2015-02-01
標籤: ThinkPHP作為國內具有代表性的PHP架構,經過多年的發展,受到越來越多公司與開發人員的青睞。我也在忙裡偷閒中抽出部分時間,來學習這個優秀的架構。在開始學習這個架構時,最好通過執行個體來學習,更容易結合實際的生產情況,促進學習的效果;這裡我就選擇由ThinkPHP團隊開發的基於ThinkPHP3.2的內容管理架構OneThink來學習,從瞭解它的執行流程→熟悉流程中各個細節→瞭解模版標籤→自己實際去使用標籤→再瞭解它的實際執行過程&helli
Time of Update: 2015-02-01
標籤:有生以來寫的第一份部落格, 還真不會寫, 請高手們指導指導.1.引入 Spring.Core.dll 和 Common.Logging.dll 兩個文2. 在UI層的Web.conf 的 <ConfigSections>中加入sprint節點.<configSections> <sectionGroup name="spring"> <section name="context"
Time of Update: 2015-02-01
標籤:原文 centos7.0 沒有netstat 和 ifconfig命令問題yum install wget運行 yum install net-tools 就OK了 預設CentOS已經安裝了OpenSSH,即使你是迷你安裝也是如此。所以這裡就不介紹OpenSSH的安裝了。 SSH配置:1、修改vi /etc/ssh/sshd_config,根據模板將要修改的參數注釋去掉並修改參數值:Port 22
Time of Update: 2015-02-01
標籤:指令與動作 include指令文法<%@include file="login.jsp"%>//頁麵包含login.jsp頁面 include動作 文法<jsp:include page="url" flush=true|false%>預設為false,表示是否從緩衝區讀取 include指令與include動作的區別 include指令包含的是代碼,在頁面中在進行對代碼進行解析
Time of Update: 2015-02-01
標籤:PHP 使用者登入與退出登入頁面login.html 負責收集使用者填寫的登入資訊。<fieldset><legend>使用者登入</legend><form name="LoginForm" method="post" action="login.php" onSubmit="return InputCheck(this)"><p><label for="username" class="label">使用者名稱:&