Time of Update: 2013-11-06
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><meta http-equiv=
Time of Update: 2013-11-06
初探js特效魅力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: 2013-11-06
/*實現功能:自己來定義一個標籤,用於jsp中日期:20130930作者:煙大陽仔*/1.編寫一個實現tag介面的JAVA類public int doStartTag() throws JspException {HttpServletRequest request=(HttpServletRequest)this.pageContext.getRequest();JspWriter out=this.pageContext.getOut();String
Time of Update: 2013-11-06
文章摘自:Ajax執行個體:獲得網站檔案內容 一個簡單的Ajax執行個體:選擇一部著作,會通過 Ajax 即時獲得相關的名字。 把4個html檔案放到 web網站 的同一個檔案下。 index.html <html> <head> <meta http-equiv="Content-Type" content="text/html;
Time of Update: 2013-11-06
/** * New node file */var EventEmitter=require('events').EventEmitter;var event=new EventEmitter();event.on('some_event',function(){console.log('some_event
Time of Update: 2013-11-06
//擷取樣式值function getStyle(obj, attr){if( obj.currentStyle) //IE{return obj.currentStyle[attr];} else //Chrome、 FF{return getComputedStyle(obj, false)[attr];}}//傳入參數:運動目標,運動參數鍵值對(json),串連函數function start_move(obj,json, fn_end
Time of Update: 2013-11-06
需求:(1)尋找訂單商品中SKU包含前置詞“DE-”或者“AG-”的所有訂單,如果包含,將包含的產品獨立出來並新增一個訂單儲存這個產品;(2)訂單列表頁:用不同的顏色區分,包含“DE-”或者“AG-”各自顯示一種顏色,便於查看開發步驟1.添加樣式.OrderStatus_DE { background-color: #04c23a; border-color: #04c23a;}.OrderStatus_AG {
Time of Update: 2013-11-06
// 第一種寫法$da = date("w");if( $da == "1" ){ echo "今天是星期一";}else if( $da == "2" ){ echo "今天是星期二";}else if( $da == "3" ){ echo "今天是星期三&
Time of Update: 2013-11-06
libcurl post資料是經常用到的操作以學校論文指導系統登入狀態例,網址:http://xxxy.hbmy.edu.cn/admin.php?mod=papers&file=index抓包資料如下:#include "stdafx.h"#include <curl/curl.h>#pragma comment(lib,"libcurl.lib")#define POSTFILES "users_userid=031040
Time of Update: 2013-11-06
<%@ page language="java" import="java.util.*,cn.com.Person,cn.com.Adddress" pageEncoding="UTF-8"%><%String path = request.getContextPath();String basePath =
Time of Update: 2013-11-06
<style>div{width:50px;height:50px;}</style><script>function showColor(obj){ alert(obj.style.backgroundColor);}</script><div id='a' style='background-color:red;' onclick='showColor(this)'></div><div id='b'
Time of Update: 2013-11-06
靜態顯示頁面:<html> <head> <base href="<%=basePath%>"> <meta http-equiv="Content-Type" content="text/html;
Time of Update: 2013-11-06
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><%String path = request.getContextPath();String basePath =
Time of Update: 2013-11-06
需求描述: 某網站與其使用者達成一致的協議,每份協議中都有使用者相關的獨特資訊,且還需要產生PDF並存檔。PDF檔案中需要有企業LOGO、文字描述等資訊。其展現形式跟word檔案類似,要求排版精美,圖文並茂,在接下來的幾篇博文中,我將記錄整個PDF產生的過程。技術調研:首先是通過Django的官方文檔找有木有相關的模組,很興奮又有點失落(模組地址:https://docs.djangoproject.com/en/1.4/howto/outputting-
Time of Update: 2013-11-06
初探js特效魅力01 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.
Time of Update: 2013-11-06
一:JQuery實現在GridView中 點擊一行的任意位置 選中這一行中的CheckBox$(function(){ $("#GridView1").find("tr").click(function(){
Time of Update: 2013-11-06
Struts2標籤的分類:Examples<s:push value="myBean"> <!-- Example 1: --> <s:property value="myBeanProperty" /> <!-- Example 2: -->TextUtils <s:property value="myBeanProperty" default="
Time of Update: 2013-11-06
<script type="text/javascript">function formattime(val) {var year=parseInt(val.year)+1900;var month=(parseInt(val.month)+1);month=month>9?month:('0'+month);var date=parseInt(val.date);date=date>9?date:('0'+date);
Time of Update: 2013-11-08
首先不管大端法還是小端法儲存,電腦在記憶體存放資料的順序都是從低地址到高地址。所不同的是首先取低位元組的資料存放在低地址還是取高位元組資料存放在低地址。 若首先取高位元組的資料放在低地址,則是大端法;若首先取低位元組的資料存放在低地址,則是小端; 例如資料0x1234567 (左邊是高位元組,右邊是低位元組) 大端法存放:記憶體位址依次為: 0x0
Time of Update: 2013-11-08
#include <stdio.h>#include <stdlib.h>void Heapadjust(int *arr, int parent, int cnt){ int child; int ValParent; for(ValParent = arr[parent]; 2 * parent + 1 < cnt; parent = child) { child = 2 * parent + 1;