Time of Update: 2015-02-03
標籤:.html()用為讀取和修改元素的HTML標籤.text()用來讀取或修改元素的純文字內容.val()用來讀取或修改表單元素的value值。.html(),.text(),.val()三種方法都是用來讀取選定元素的內容;只不 過.html()是用來讀取元素的HTML內容(包括其Html標籤),.text()用來讀取元素的純文字內容,包括其後代元素,.val()是用來讀
Time of Update: 2015-02-03
標籤: 1)memcached 的幾個指令:-p監聽的連接埠-l串連的IP地址, 預設是本機-d start啟動memcached服務-d restart重起memcached服務-d stop|shutdown關閉正在啟動並執行memcached服務-d install安裝memcached服務-d uninstall卸載memcached服務-u以的身份運行(僅在以root啟動並執行時候有效)-m 最大記憶體使用量,單位MB。預設64MB-M
Time of Update: 2015-02-03
標籤:Firefox and Opera are the only browsers capable of loading scripts in parallel while preserving execution order. In all other browsers, scripts must be loaded sequentially.//只有Firefox和opera支援並行載入指令碼,並保持執行順序。其他遊覽器必須按順序進行載入。All browsers
Time of Update: 2015-02-03
標籤:編譯安裝apache1、查看配置選項 ./configure -h2、配置Apache ./configure --prefix=/usr/local/apache2 \ //指定Apache的安裝位置 --
Time of Update: 2015-02-03
標籤:php 時間戳記有時候,要比較兩個時間之間相差的天數可以採用strtortime()函數,該函數預期接受一個包含英文日期格式的字串,並嘗試將其解析為UNIX時間戳記int strtotime(string time [,int now]);strtotime()函數有兩個參數。如果參數time的格式是絕對時間,則now參數不起作用,如果參數time的格式是相對時間,其對應的時間由參數now來提供。<?php$a=strtotime("now"); &
Time of Update: 2015-02-03
標籤:一、 安裝準備1. 安裝Openssl要使Apache支援SSL,需要首先安裝Openssl支援。這裡使用的是openssl-0.9.8k.tar.gz下載Openssl:http://www.openssl.org/source/tar -zxf openssl-0.9.8k.tar.gz //解壓安裝包cd openssl-0.9.8k //進入已經解壓的安裝包./config //配置安裝。推薦使用預設配置make && make install
Time of Update: 2015-02-03
標籤: forward指令 既可以指向靜態html頁面,也可以轉寄到動態jsp頁面,並可以保留先前請求的參數. 例如,在web中建立一個Jsp_src.jsp的jsp頁面:<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+
Time of Update: 2015-02-03
標籤: border:1px solid rgba(0,0,0,0.1);意思是 設定元素的邊框為1像素寬,實線,顏色使用rgba來表達。其中,rgba是CSS3中的屬性,rgba括弧中前3個數字代表著 red green blue三種顏色的rgb值,0-255,最後一個是設定這個顏色的透明度即alpha值。範圍從0到1,越接近1,代表透明度越低。css 中border: 1px solid rgba(0, 0, 0, 0.1); 是什麼意思?
Time of Update: 2015-02-03
標籤: 今天客戶反映有個功能投票模組第一天投了後,第二天就不能投了,理論上是第二天淩晨就可以再答題的,發現本地是正常的,linux伺服器異常,仔細尋找原因發現是strtotime函數擷取的值和本地擷取的值不一致,離真實的值小了8小時,網上尋找資料才知道,是strtotime()裡面的時間格式的問題,需要是UTCO的格式; 在linux伺服器php的strtotime的正確使用方法是:strtotime(date("Y-m-d H:i:s")."Z");PHP
Time of Update: 2015-02-03
標籤:public class HttpClientTest { public static void main(String args[]) { //建立HttpClientBuilder &nb
Time of Update: 2015-02-03
標籤: 0x01. 下載兩個 Phar 包: wget https://phar.phpunit.de/phpunit.pharwget https://phar.phpunit.de/phpunit-skelgen.phar 0x02. 讓這兩個包可執行 chmod +x phpunit.pharchmod +x phpunit-skelgen.phar 0x03. 移動(或建立軟串連)到你的環境變數的目錄下 mv phpunit.phar
Time of Update: 2015-02-03
標籤:eq標籤name屬性:vo[‘gs_nationid‘], value屬性:如果是資料庫取值,這樣取值:$vocountry[‘countryid‘] <select name="gs_nationid" class="required combox"ref="w_combox_province"
Time of Update: 2015-02-03
標籤:01、 取文檔url參數值 function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null;
Time of Update: 2015-02-03
標籤: 1、file_get_contents擷取文本或者網頁的內容string file_get_contents ( string $filename [, bool $use_include_path = false [, resource $context [, int $offset = -1 [, int $maxlen ]]]] )檔案不存在報錯 2、file_get_contents把內容寫入到檔案int file_put_contents ( string
Time of Update: 2015-02-03
標籤:前幾天和兩個朋友一起租了個國外的伺服器,自己手頭有個網域名稱,打算寒假把flask學了做個網站玩一玩,不過還沒開工,下午學了下flask弄了個helloworld,所以迫不及待的想先試一下把它部署到伺服器上去。使用的架構是uwgsi+nginx+flask.nginx是個什麼東西呢,我們購買的伺服器有一個ip地址,我們3個人有個人的網域名稱需要解析到這個地址,互連網上預設的請求都是通過80連接埠,然後我們各自的web應用在伺服器上需要有自己的連接埠,那麼nginx就把請求轉移到對應的伺服器
Time of Update: 2015-02-03
標籤:linux nginx https 1、安裝nginx要安裝http_ssl_module模組,需要OpenSSL庫和相關的開發包,因此在安裝前,必須安裝這些支援在centos系統下,直接用yum安裝即可:# yum install openssl openssl-devel編譯nginx# tar -zxvf pcre-8.12.tar.gz# cd pcre-8.12#
Time of Update: 2015-02-03
標籤:Curling 2.0Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 12700 Accepted: 5343DescriptionOn Planet MM-21, after their Olympic games this year, curling is getting popular. But the rules are somewhat
Time of Update: 2015-02-03
標籤: 今天為大家分享一下剛剛總結好的html經驗,以備不時之需。 首先介紹一下frameset標籤,此標籤用於同一頁面內切換網頁,在大多數網頁中都可以看到,因為項目的需要,故而研究一二。 frameset標籤不能放置在body標籤之中,它的具體實現如下:工程項目結構: 首頁面代碼(index.jsp):<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%><!--
Time of Update: 2015-02-03
標籤:如題: 處理辦法: 1. 使用struts標籤 <s:property value ="#text.replaceAll(‘<[^>]+>‘,‘‘).substring(0,77)" escape="false"/> 過濾掉所有 標籤2. 使用 js var div =
Time of Update: 2015-02-03
標籤:清楚了CSS 盒模型的基本概念、 盒模型類型, 我們就可以深入探討網頁布局的基本模型了。布局模型與盒模型一樣都是 CSS 最基本、 最核心的概念。 但布局模型是建立在盒模型基礎之上,又不同於我們常說的 CSS 配置樣式或 CSS 布局模板。如果說布局模型是本,那麼 CSS 布局模板就是末了,是外在的表現形式。 CSS包含3種基本的布局模型,用英文概括為:Flow、Layer 和 Float。在網頁中,元素有三種布局模型:1、流動模型(Flow)2、浮動模型