Time of Update: 2015-02-06
標籤:1、下載一個jquery.js的檔案2、引入jquery.js檔案1 <script type="text/javascript" src="__PUBLIC__/js/jquery-1.7.2.min.js"></script>2 <script type="text/javascript">3 $(function(){4 5 //這裡面使用jquery的方法6 7 8 });9
Time of Update: 2015-02-06
標籤:function ajax(url, fnSucc, fnFaild){//1.建立Ajax對象var oAjax=null;if(window.XMLHttpRequest){oAjax=new XMLHttpRequest();}else{oAjax=new ActiveXObject("Microsoft.XMLHTTP");}//2.串連伺服器oAjax.open(‘GET‘, url,
Time of Update: 2015-02-06
標籤:The best way I can think of is to intercept the form-submit action, and convert the form details into XML format, and then submit that to the server. There are many ways to do this, but the easiest would be to implement a solution via a framework
Time of Update: 2015-02-06
標籤:今天做項目中,需要將文章點擊量顯示在頁面中,需求中給的是多少多少萬,雖然不是什麼難事,但做程式員這麼久了,需要考慮的不再是簡單的實現,而且有效率和快捷,雖然PHP內建的函數有number_format()可以做到實現千分位,但我要的是萬分位,通過尋找,發現了可以用以下這個方法:$num = 86231;# 將數字轉為萬分位echo $num>10000?sprintf("%.1f",
Time of Update: 2015-02-06
標籤:hibernate 主鍵策略 hashcode equals 一:運行上一篇文章的程式會發現,後台輸出兩個warn17:22:14,232 WARN RootClass:233 - composite-id class does not override equals(): com.hibernate.model.TeacherPK17:22:
Time of Update: 2015-02-06
標籤:php 引用 <?php // http://blog.csdn.net/samxx8/article/details/37564103/**在PHP 中引用的意思是:不同的名字訪問同一個變數內容.(1) 變數之間的引用: $a = 10 ; $b =$a ; // 此時$b和$a所指向的是同一儲存地址 ,如果$a = 11 ; 則zend會開闢一個新的單元從來是的$a = 11 ; $b 還是原來的地址$a =
Time of Update: 2015-02-06
標籤:android json http post HttpClient類比get,post請求並發送請求參數(json等)import java.io.IOException;import net.sf.json.JSONArray;import net.sf.json.JSONObject;import
Time of Update: 2015-02-06
標籤:hibernate報錯內容:17:21:59,843 INFO org.hibernate.tool.hbm2ddl.SchemaExport:226 - Running hbm2ddl schema export 17:21:59,859 DEBUG org.hibernate.tool.hbm2ddl.SchemaExport:242 - import file not found: /import.sql 17:21:59,859
Time of Update: 2015-02-06
標籤:.net corefx coreclr 2014年底微軟印度籍CEO宣布了.Net跨平台開源計劃,沒想到他們的動作還很快,corefx和coreclr的代碼已經上傳到github了,對於.Net程式員來說絕對是一個福音。讀讀這些代碼絕對是提升水平的有效途徑。Github上的項目如下所示:我用sourcetree工具下載了代碼到本地檔案夾,如下所示:1.
Time of Update: 2015-02-06
標籤:css css知多少 上一節《css知多少(2)——學習css的思路》有幾個人留言表示思路很好、繼續期待,而且收到了9個贊,我還是比較欣慰的。沒看過的朋友建議先去看看上一節。 這一節就開始實踐上一節的思路!1. “層疊”的概念 CSS——層疊樣式表,其中的“層疊”是什麼意思呢?層疊就是瀏覽器對多個樣式來源進行疊加,最終確定結果的過程。舉一個簡單的例子:
Time of Update: 2015-02-06
標籤:<!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
Time of Update: 2015-02-06
標籤:搜尋 printf math.h acm演算法 c Problem DescriptionIgnatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The labyrinth has an
Time of Update: 2015-02-06
標籤:開始學習PHP,使用的是webmatrix構建的本機伺服器(這樣最簡單了,但也弄了好半天)。說起來webmatrix也確實夠簡單的了,只需要建立一個空網站,然後就可以在裡面開搞了。注意的是,啟動並執行時候可能會返回404,這是由於主站沒有預設頁面,預設頁面在網站的設定下面輸入,輸入想要的預設頁面就可以了。正式開始php了php的指令碼都是以<?php開始然後?>結束變數前全部要加上貨幣符號(還挺貪錢的):$(中文IME下竟然變成了¥)注意,php中變數也分為全域變數和局部變數,
Time of Update: 2015-02-06
標籤: 上一節《css知多少(2)——學習css的思路》有幾個人留言表示思路很好、繼續期待,而且收到了9個贊,我還是比較欣慰的。沒看過的朋友建議先去看看上一節。 這一節就開始實踐上一節的思路!1.
Time of Update: 2015-02-06
標籤:<!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: 2015-02-06
標籤:在xaml的頁面上建立一個x:Name為_list1的ListBox,其中ListBox裡面的每一項是ListBoxItem if (_list1.SelectedItem == null)//如果_list1的選中項為空白的情況下進行返回 { return; } else { var list =
Time of Update: 2015-02-06
標籤:先下載相應的php檔案:http://files.cnblogs.com/files/tianguook/phpmailer.rar解壓後有2個php檔案(2個類) 1個html檔案(API)將2個php檔案放到php項目中簡述:我這裡是用一個163的郵箱發訊息給126的郵箱關鍵代碼如下:<?php require ‘class.phpmailer.php‘; $mail = new PHPMailer(true); //建立郵件發送類
Time of Update: 2015-02-06
標籤:轉載 http://blog.csdn.net/liruxing1715/article/details/7914974 PHPMailer 的官方網站:http://phpmailer.worxware.com/PHPMailer 最新類庫:【點擊下載】PHPMailer GitHub :https://github.com/Synchro/PHPMailer,該頁面也提供了使用例子,不過不是很全面。使用方法,詳見代碼清單: <?phpheader(‘
Time of Update: 2015-02-06
標籤:當使用css3時,會遇到利用@keyframes來定義動畫事件,利用以下3個事件,能夠捕捉當前元素的動畫:AnimationEnd //動畫結束時AnimationStart //動畫開始AnimationIteration
Time of Update: 2015-02-06
標籤:磁碟滿了,由於使用的是lvm,想要擴容時發現無論lvs還是lvdisplay這類命令都會報同樣的錯:[[email protected] qwang]# lvs Parse error at byte 1591 (line 100): unexpected token Error parsing metadata for VG fedora. Skipping volume group fedora Internal error: Volume Group fedora