Time of Update: 2014-12-29
標籤:<!doctype html><html><head><meta charset="utf-8"><meta name="author" content="智能社 - zhinengshe.com"><meta name="copyright" content="智能社 - zhinengshe.com"><title>智能社 -
Time of Update: 2014-12-29
標籤:字串插值變數可以用像 @{name} 這樣的結構,以類似 ruby 和 php 的方式嵌入到字串中:@base-url: "http://assets.fnord.com";background-image: url("@{base-url}/images/bg.png");調試我們在產生的CSS中帶上一些額外的資訊,以便一些調試工具可以定位到LESS檔案中的行數。可以通過dumpLineNumbers選項或者
Time of Update: 2014-12-29
標籤: [來源] 達內 [編輯] 達內 [時間]2012-09-14在Asp.net4和4.5中,新增了WebPages Framework,編寫頁面代碼使用了新的Razor文法,代碼更加的簡潔和符合Web標準 在Asp.net4和4.5中,新增了WebPages
Time of Update: 2014-12-29
標籤:During the project, in order to make a unified management for the image URL , at present we make use of the LESSCSS method, set the image URL as independent variable, then all images use the image URL variable, it’s
Time of Update: 2014-12-29
標籤:sea.js 是一個模組載入器1 模組定義definedefine(function(require,exports,module){ //require 引入需要的模組如jquery等 //var $ = require(‘./jquery‘); //exports可以把方法或屬性暴露給外部 exports.name = ‘hi‘;
Time of Update: 2014-12-29
標籤:zabbix
Time of Update: 2014-12-29
標籤:url freemarker 編碼 utf-8 亂碼 在freemarker將URL的編碼格式設定為自己想要的格式: <#setting url_escaping_charset=‘utf-8‘>然後再參數後面加上“?url”,這樣傳遞到背景參數編碼就是就是你想要的
Time of Update: 2014-12-29
標籤:html5 android webview ---------------------------------------------------故事開始-----------------------------------------------------------------------------------------前端時間,實習公司裡要做一個WEB_app
Time of Update: 2014-12-29
標籤:在html的head頭內如下寫法,節選自http://www.xingzai.org/html-note/meta-tag-usage-order.html:<!--x-ua-compatible(瀏覽器安全色模式)僅對IE8+以效告訴瀏覽器以什麼版本的IE的相容模式來顯示網頁<meta http-equiv="X-UA-Compatible" content="IE=5" ><meta http-equiv="X-UA-Compatible"
Time of Update: 2014-12-29
標籤:本文轉載至 http://www.it165.net/pro/html/201403/10755.html 今天需要用AFNetworking實現斷點續傳的功能,但是在進行了一番研究之後,發現AFNetworking雖然支援下載檔案的暫停和繼續,但是程式重新啟動後再次下載無法進行續傳。網上有說可以通過AFDownloadRequestOperation這個AFNetworking的擴充庫來實現重新啟動後的續傳,但是經過本人測試,這個庫在最新的AFNetworking上會
Time of Update: 2014-12-29
標籤:cookie-parser的作用,官方的說法是:Parse Cookie header and populate req.cookies with an object keyed by the cookie
Time of Update: 2014-12-29
標籤:1、在項目上,進入屬性(properties) 2、左側清單項目中選擇“Project Facets”,在右側選擇“Dynamic Web Module”和"Java",(如果要修改eclipse預設的WebContent為WebRoot,點擊Further Configuration available...,把預設的Content
Time of Update: 2014-12-29
標籤:把名稱和後台來的json資料約定起來,可以達到的效果就是可以將東西統一化,減少差異,提升模組等的通用性,此後就可以實現具體不同模組內容可以自動或拷貝賦值的方式順帶,這個前端項目中用到的控制項,一般是手寫,其他類型,比如菜單是 accordion.js這個手風琴控制項 /* File Created: 十二月 18, 2014 *@Author iGO*@LastModify 2014-12
Time of Update: 2014-12-29
標籤: 1 //每一個列都會出現滑鼠懸浮上去顯示內容 2 /** 3 * //適用於Extjs4.x 4 * @class Ext.grid.GridView 5 * @override Ext.grid.GridView 6 * GridPanel儲存格不能選中複製問題 7 * 儲存格資料顯示不完整 ,增加title 浮動提示資訊 8 */ 9 Ext.override(Ext.grid.GridPanel, {10 afterRender : Ext.Function.
Time of Update: 2014-12-29
標籤:首先 classpath是指 WEB-INF檔案夾下的classes目錄 解釋classes含義:1.存放各種資源設定檔 eg.init.properties log4j.properties struts.xml2.存放模板檔案 eg.actionerror.ftl3.存放class檔案 對應的是項目開發時的src目錄編譯檔案總結:這是一個定位資源的入口如果你知道開發過程中有這麼一句話:慣例大於配置
Time of Update: 2014-12-29
標籤:使用ftp上傳檔案,並且Request.files擷取檔案,今天發現擷取到的檔案個數始終是0個,查了下原來form標籤中需加入enctype=”multipart/form-data”,呵呵了<form enctype="multipart/form-data" ID="form1" runat="server"> <input type="file" name="filename" /&
Time of Update: 2014-12-29
標籤:有互動就有等待,等待頁面載入完畢的時間怎麼處理呢?有人說sleep:sleep N #等待N秒後繼續執行怎麼才能告別毫無意義的命令呢?接下來介紹一下Watir-Webdriver為我們提供等待方法。Watir::Wait.until#等待直到頁面顯示結果Watir::Wait.until { @@b.text.include? ‘welcome word‘ }...
Time of Update: 2014-12-29
標籤:1、編譯安裝前準備由於httpd-2.4依賴於1.4+的apr,所以編譯安裝apr和apr-util(1) 編譯安裝apr# tar xf apr-1.5.0.tar.bz2# cd apr-1.5.0# ./configure --prefix=/usr/local/apr# make && make install(2) 編譯安裝apr-util# tar xf apr-util-1.5.3.tar.bz2# cd apr-util-1.5.3#
Time of Update: 2014-12-29
標籤:噩夢開始的源頭:之前寫html或者jsp頁面,從來不注意doctype的聲明,也不太明白doctype的作用。直到最近碰到了一個非常奇葩的bug:某一個頁面在IE7和8,Chrome,ff等下正常,但是在IE9下顯示有問題我就開始找啊找,各種調試,各種log終於在httpWatch裡邊找到了答案:DOCTYPE未聲明。於是我給頁面添加了<!DOCTYPE
Time of Update: 2014-12-29
標籤:這是在Extjs 中插入html 控制項label! html: "<div><label id=‘howMany‘>您共選中了</label><br/></div>"擷取label值:document.getElementById(‘howMany‘).innerText賦值label值:document.getElementById(‘howMany‘).innerText = "這是賦值";