亚洲中文字幕日产乱码高清app,亚洲国产av无码精品,亚洲人成77777在线观看网http://www.tkk7.com/seoyouhua/V8微商網(wǎng)_www.vip3158.com---時(shí)代創(chuàng)業(yè)網(wǎng)_www.sdcye.comzh-cnSat, 10 May 2025 07:06:26 GMTSat, 10 May 2025 07:06:26 GMT60Java 接口http://www.tkk7.com/seoyouhua/archive/2016/10/09/431876.htmlV8微商網(wǎng)V8微商網(wǎng)Sun, 09 Oct 2016 12:33:00 GMThttp://www.tkk7.com/seoyouhua/archive/2016/10/09/431876.htmlhttp://www.tkk7.com/seoyouhua/comments/431876.htmlhttp://www.tkk7.com/seoyouhua/archive/2016/10/09/431876.html#Feedback0http://www.tkk7.com/seoyouhua/comments/commentRss/431876.htmlhttp://www.tkk7.com/seoyouhua/services/trackbacks/431876.html閱讀全文

V8微商網(wǎng) 2016-10-09 20:33 發(fā)表評(píng)論
]]>
逗號(hào)表達(dá)式語(yǔ)法http://www.tkk7.com/seoyouhua/archive/2016/10/01/431856.htmlV8微商網(wǎng)V8微商網(wǎng)Sat, 01 Oct 2016 13:30:00 GMThttp://www.tkk7.com/seoyouhua/archive/2016/10/01/431856.htmlhttp://www.tkk7.com/seoyouhua/comments/431856.htmlhttp://www.tkk7.com/seoyouhua/archive/2016/10/01/431856.html#Feedback0http://www.tkk7.com/seoyouhua/comments/commentRss/431856.htmlhttp://www.tkk7.com/seoyouhua/services/trackbacks/431856.htmla+b,c+d,e+f ... y+z

逗號(hào)表達(dá)式示例

逗號(hào)表達(dá)式允許一條語(yǔ)句中執(zhí)行多個(gè)表達(dá)式,例如

var a=5,b=6,c=7,a=b+c,c=a+b;

上面并非優(yōu)美的語(yǔ)句,因?yàn)橘x值表達(dá)式與加法表達(dá)式同時(shí)在一個(gè)逗號(hào)表達(dá)式中,容易產(chǎn)生混亂。最好把單一功能的表達(dá)式合并。

var a=5,b=6,c=7;
a=b+c,c=a+b;


V8微商網(wǎng) 2016-10-01 21:30 發(fā)表評(píng)論
]]>
JavaScript教程:適合新手的js代碼使用方法和技巧大全http://www.tkk7.com/seoyouhua/archive/2016/10/01/431855.htmlV8微商網(wǎng)V8微商網(wǎng)Sat, 01 Oct 2016 13:28:00 GMThttp://www.tkk7.com/seoyouhua/archive/2016/10/01/431855.htmlhttp://www.tkk7.com/seoyouhua/comments/431855.htmlhttp://www.tkk7.com/seoyouhua/archive/2016/10/01/431855.html#Feedback0http://www.tkk7.com/seoyouhua/comments/commentRss/431855.htmlhttp://www.tkk7.com/seoyouhua/services/trackbacks/431855.html本文把有關(guān)JavaScript的方法和技巧整理下,讓每個(gè)在為JavaScript而煩惱的人明白,JavaScript就這么回事!并希望JavaScript還可以成為你的朋友,讓你豁然開(kāi)朗,在項(xiàng)目中更好的應(yīng)用~ 適合閱讀范圍:對(duì)JavaScript一無(wú)所知~離精通只差一步之遙的人

有些時(shí)候你精通一門(mén)語(yǔ)言,但是會(huì)發(fā)現(xiàn)你其實(shí)整天在和其它語(yǔ)言打交道,也許你以為這些微不足道,不至于影響你的開(kāi)發(fā)進(jìn)度,但恰恰是這些你不重視的東西會(huì)浪費(fèi)你很多時(shí)間,我一直以為我早在幾年前就已經(jīng)精通JavaScript了,直到目前,我才越來(lái)越覺(jué)得JavaScript遠(yuǎn)比我想象的復(fù)雜和強(qiáng)大,我開(kāi)始崇拜它,就像崇拜所有OOP語(yǔ)言一樣~

趁著節(jié)日的空隙,把有關(guān)JavaScript的方法和技巧整理下,讓每個(gè)在為JavaScript而煩惱的人明白,JavaScript就這么回事!并希望JavaScript還可以成為你的朋友,讓你豁然開(kāi)朗,在項(xiàng)目中更好的應(yīng)用~

適合閱讀范圍:對(duì)JavaScript一無(wú)所知~離精通只差一步之遙的人

基礎(chǔ)知識(shí):HTML

JavaScript就這么回事:基礎(chǔ)知識(shí)

1 創(chuàng)建腳本塊

<script language="JavaScript">
JavaScript code goes here
</script>

2 隱藏腳本代碼

1 <script language="JavaScript">
2 <!--
3 document.write("Hello");
4 // -->
5 </script>

在不支持JavaScript的瀏覽器中將不執(zhí)行相關(guān)代碼

3 瀏覽器不支持的時(shí)候顯示

1 <noscript>
2 Hello to the non-JavaScript browser.
3 </noscript>

4 鏈接外部腳本文件

1 <script language="JavaScript" src="filename.js"></script>

5 注釋腳本

1 // This is a comment
2 document.write("Hello"); // This is a comment
3 /*
4 All of this
5 is a comment
6 */

6 輸出到瀏覽器

1 document.write("<strong>Hello</strong>");

7 定義變量

1 var myVariable = "some value";

8 字符串相加

1 var myString = "String1" + "String2";

9 字符串搜索

1 <script language="JavaScript">
2 <!--
3 var myVariable = "Hello there";
4 var therePlace = myVariable.search("there");
5 document.write(therePlace);
6 // -->
7 </script>

10 字符串替換

1 thisVar.replace("Monday","Friday");

11 格式化字串

01 <script language="JavaScript">
02 <!--
03 var myVariable = 'Hello there";
04 document.write(myVariable.big() + "<br>");
05 document.write(myVariable.blink() + "<br>");
06 document.write(myVariable.bold() + "<br>");
07 document.write(myVariable.fixed() + "<br>");
08 document.write(myVariable.fontcolor("red") + "<br>");
09 document.write(myVariable.fontsize("18pt") + "<br>");
10 document.write(myVariable.italics() + "<br>");
11 document.write(myVariable.small() + "<br>");
12 document.write(myVariable.strike() + "<br>");
13 document.write(myVariable.sub() + "<br>");
14 document.write(myVariable.sup() + "<br>");
15 document.write(myVariable.toLowerCase() + "<br>");
16 document.write(myVariable.toUpperCase() + "<br>");
17 var firstString = "My String";
18 var finalString = firstString.bold().toLowerCase().fontcolor("red");
19 // -->
20 </script>

12 創(chuàng)建數(shù)組

01 <script language="JavaScript">
02 <!--
03 var myArray = new Array(5);
04 myArray[0] = "First Entry";
05 myArray[1] = "Second Entry";
06 myArray[2] = "Third Entry";
07 myArray[3] = "Fourth Entry";
08 myArray[4] = "Fifth Entry";
09 var anotherArray = new Array("First Entry","Second Entry","Third Entry","Fourth Entry","Fifth Entry");
10 // -->
11 </script>

13 數(shù)組排序

01 <script language="JavaScript">
02 <!--
03 var myArray = new Array(5);
04 myArray[0] = "z";
05 myArray[1] = "c";
06 myArray[2] = "d";
07 myArray[3] = "a";
08 myArray[4] = "q";
09 document.write(myArray.sort());
10 // -->
11 </script>

14 分割字符串

01 <script language="JavaScript">
02 <!--
03 var myVariable = "a,b,c,d";
04 var stringArray = myVariable.split(",");
05 document.write(stringArray[0]);
06 document.write(stringArray[1]);
07 document.write(stringArray[2]);
08 document.write(stringArray[3]);
09 // -->
10 </script>

15 彈出警告信息

1 <script language="JavaScript">
2 <!--
3 window.alert("Hello");
4 // -->
5 </script>

16 彈出確認(rèn)框

1 <script language="JavaScript">
2 <!--
3 var result = window.confirm("Click OK to continue");
4 // -->
5 </script>

17 定義函數(shù)

1 <script language="JavaScript">
2 <!--
3 function multiple(number1,number2) {
4 var result = number1 * number2;
5 return result;
6 }
7 // -->
8 </script>

18 調(diào)用JS函數(shù)

1 <a href="#" onClick="functionName()">Link text</a>
2 <a >Link text</a>

19 在頁(yè)面加載完成后執(zhí)行函數(shù)

1 <body onLoad="functionName();">
2 Body of the page
3 </body>

20 條件判斷

1 <script>
2 <!--
3 var userChoice = window.confirm("Choose OK or Cancel");
4 var result = (userChoice == true) ? "OK" : "Cancel";
5 document.write(result);
6 // -->
7 </script>

21 指定次數(shù)循環(huán)

01 <script>
02 <!--
03 var myArray = new Array(3);
04 myArray[0] = "Item 0";
05 myArray[1] = "Item 1";
06 myArray[2] = "Item 2";
07 for (i = 0; i < myArray.length; i++) {
08 document.write(myArray[i] + "<br>");
09 }
10 // -->
11 </script>

22 設(shè)定將來(lái)執(zhí)行

1 <script>
2 <!--
3 function hello() {
4 window.alert("Hello");
5 }
6 window.setTimeout("hello()",5000);
7 // -->
8 </script>

23 定時(shí)執(zhí)行函數(shù)

1 <script>
2 <!--
3 function hello() {
4 window.alert("Hello");
5 window.setTimeout("hello()",5000);
6 }
7 window.setTimeout("hello()",5000);
8 // -->
9 </script>

24 取消定時(shí)執(zhí)行

1 <script>
2 <!--
3 function hello() {
4 window.alert("Hello");
5 }
6 var myTimeout = window.setTimeout("hello()",5000);
7 window.clearTimeout(myTimeout);
8 // -->
9 </script> 



V8微商網(wǎng) 2016-10-01 21:28 發(fā)表評(píng)論
]]>
JSP中向cookie寫(xiě)入中文亂碼解決方法http://www.tkk7.com/seoyouhua/archive/2016/09/05/431746.htmlV8微商網(wǎng)V8微商網(wǎng)Mon, 05 Sep 2016 12:24:00 GMThttp://www.tkk7.com/seoyouhua/archive/2016/09/05/431746.htmlhttp://www.tkk7.com/seoyouhua/comments/431746.htmlhttp://www.tkk7.com/seoyouhua/archive/2016/09/05/431746.html#Feedback0http://www.tkk7.com/seoyouhua/comments/commentRss/431746.htmlhttp://www.tkk7.com/seoyouhua/services/trackbacks/431746.html在jsp中對(duì)中文的處理有一點(diǎn)不好就可能出現(xiàn)亂碼了,下面我來(lái)給大家介紹jsp中向cookie寫(xiě)入中文實(shí)現(xiàn)程序有需要了解的朋友可參考。

Cookie不能直接存中文,中文必須編碼成asccii串才行,可以這樣做 (http://www.javaweb.cc搜集整理)

代碼如下
String str = java.net.URLEncoder.encode(中文);

得到編碼后的字符串
取出后這樣解碼:
代碼如下
String str = java.net.URLDecoder.decode(編碼后的字符串);

具體方法

一般是這樣一個(gè)過(guò)程 字符串轉(zhuǎn)碼==》存入cookie===》讀取cookie==》轉(zhuǎn)碼==》顯示

第一步:寫(xiě)入cookie時(shí)先進(jìn)行編碼

代碼如下
Cookie cookie=new Cookie("groupMembersList",URLEncoder.encode (groupMembersList,"GBK")); //默認(rèn)為臨時(shí)Cookie,MaxAge<0
//cookie.setMaxAge(-1);
response.addCookie(cookie);


第二步:讀取cookie再進(jìn)行解碼

代碼如下
<%
Cookie[] cookies=request.getCookies();
for(Cookie cookie:cookies){
if(cookie.getName().equalsIgnoreCase("groupMembersList"))
request.setAttribute("group",URLDecoder.decode(cookie.getValue(),"GBK"));
}
%>

<c:out value="${requestScope.group }"/>

還有一種辦法

代碼如下
try{
Cookie cookie = new Cookie(name, new String(value.getBytes("GBK"), "ISO8859-1"));
cookie.setDomain(this.domain);
cookie.setPath("/");
cookie.setMaxAge(120 * 1000);
response.addCookie(cookie);
}catch (Exception e){
e.printStackTrace();
}

V8微商網(wǎng) 2016-09-05 20:24 發(fā)表評(píng)論
]]>
Java使用poi對(duì)Execl簡(jiǎn)單寫(xiě)操作http://www.tkk7.com/seoyouhua/archive/2016/09/05/431745.htmlV8微商網(wǎng)V8微商網(wǎng)Mon, 05 Sep 2016 12:23:00 GMThttp://www.tkk7.com/seoyouhua/archive/2016/09/05/431745.htmlhttp://www.tkk7.com/seoyouhua/comments/431745.htmlhttp://www.tkk7.com/seoyouhua/archive/2016/09/05/431745.html#Feedback0http://www.tkk7.com/seoyouhua/comments/commentRss/431745.htmlhttp://www.tkk7.com/seoyouhua/services/trackbacks/431745.htmlJava使用poi對(duì)Execl簡(jiǎn)單寫(xiě)操作

public class WriteExecl {

    public void writeExeclTest() throws Exception{
        OutputStream os = new FileOutputStream("F:/execl/writeTest2.xlsx");
        //Workbook wb = new HSSFWorkbook(); // 創(chuàng)建一個(gè) 2003 版本的Execl
        Workbook wb = new XSSFWorkbook(); // 創(chuàng)建一個(gè) 2007 以上版本的Execl
         
        CellStyle cellStyle = wb.createCellStyle(); // 創(chuàng)建一個(gè)樣式
        cellStyle.setBorderLeft(CellStyle.BORDER_THIN); // 單元格邊框粗細(xì)
        cellStyle.setBorderRight(CellStyle.BORDER_THIN);// 單元格邊框粗細(xì)
        cellStyle.setBorderTop(CellStyle.BORDER_THIN);// 單元格邊框假粗細(xì)
        cellStyle.setBorderBottom(CellStyle.BORDER_THIN);// 單元格邊框粗細(xì)
        cellStyle.setAlignment(CellStyle.ALIGN_CENTER); // 水平居中 
        cellStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER); // 垂直居中
        cellStyle.setBottomBorderColor(IndexedColors.RED.getIndex()); // 設(shè)置底邊框?yàn)榧t色
        cellStyle.setFillForegroundColor(IndexedColors.DARK_YELLOW.getIndex()); // 設(shè)置前景色
        cellStyle.setFillPattern(CellStyle.SOLID_FOREGROUND); // 設(shè)置單元格填充顏色
         
        Sheet sheet = wb.createSheet("第一個(gè)sheet"); // 創(chuàng)建一個(gè)名字的sheet
        sheet.setDefaultColumnWidth(1000); // 設(shè)置sheet中的默認(rèn)寬度
        sheet.setDefaultRowHeight((short) 800); // 設(shè)置sheet中的默認(rèn)高度
         
        Row row = sheet.createRow(0); // 創(chuàng)建一行
        row.createCell(0, Cell.CELL_TYPE_BLANK); // 創(chuàng)建一個(gè)blank的單元格
        row.createCell(1, Cell.CELL_TYPE_BOOLEAN).setCellValue(true); // 創(chuàng)建一個(gè)boolean的單元格
        row.createCell(2, Cell.CELL_TYPE_FORMULA).setCellValue(3.141592653); // 創(chuàng)建一個(gè)formula的單元格
        row.createCell(3, Cell.CELL_TYPE_NUMERIC).setCellValue(0); // 創(chuàng)建一個(gè)numeric的單元格
        row.createCell(4, Cell.CELL_TYPE_STRING).setCellValue("String..."); // 創(chuàng)建一個(gè)string的單元格
        row.setRowStyle(cellStyle); // 設(shè)置行的樣式
        wb.write(os); // 向內(nèi)存中的Execl寫(xiě)出orkbook工作簿
        os.close(); // 記得關(guān)閉流,釋放資源
    }
}

V8微商網(wǎng) 2016-09-05 20:23 發(fā)表評(píng)論
]]>
使用JavaScript實(shí)現(xiàn)頁(yè)面定時(shí)跳轉(zhuǎn)并顯示倒計(jì)時(shí)http://www.tkk7.com/seoyouhua/archive/2016/09/05/431744.htmlV8微商網(wǎng)V8微商網(wǎng)Mon, 05 Sep 2016 12:22:00 GMThttp://www.tkk7.com/seoyouhua/archive/2016/09/05/431744.htmlhttp://www.tkk7.com/seoyouhua/comments/431744.htmlhttp://www.tkk7.com/seoyouhua/archive/2016/09/05/431744.html#Feedback0http://www.tkk7.com/seoyouhua/comments/commentRss/431744.htmlhttp://www.tkk7.com/seoyouhua/services/trackbacks/431744.html使用JavaScript實(shí)現(xiàn)頁(yè)面定時(shí)跳轉(zhuǎn)并顯示倒計(jì)時(shí)
1.創(chuàng)建一個(gè)就簡(jiǎn)單的頁(yè)面
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>頁(yè)面定時(shí)自動(dòng)跳轉(zhuǎn)并顯示倒計(jì)時(shí)</title>
</head>
<body>
<h1>自動(dòng)跳轉(zhuǎn):<span id="wait">4</span></h1>
</body>
</html>
2.js函數(shù)
/**
  * 定時(shí)跳轉(zhuǎn)
  * href 要跳轉(zhuǎn)的鏈接
  * elemId 顯示時(shí)間元素
  */

function TimeLocation(href,elemId){
var elem = document.getElementById(elemId);
var interval = setInterval(function(){
        var time = --elem.innerHTML;
  if(time <= 0) {
   location.href = href;
   clearInterval(interval);
  }
},1000);
}
3.調(diào)用
window.onload=function(){
TimeLocation('localhost','wait');
}

V8微商網(wǎng) 2016-09-05 20:22 發(fā)表評(píng)論
]]>
使用 Google-Code-Prettify 實(shí)現(xiàn)代碼高亮功能http://www.tkk7.com/seoyouhua/archive/2016/09/05/431743.htmlV8微商網(wǎng)V8微商網(wǎng)Mon, 05 Sep 2016 12:21:00 GMThttp://www.tkk7.com/seoyouhua/archive/2016/09/05/431743.htmlhttp://www.tkk7.com/seoyouhua/comments/431743.htmlhttp://www.tkk7.com/seoyouhua/archive/2016/09/05/431743.html#Feedback0http://www.tkk7.com/seoyouhua/comments/commentRss/431743.htmlhttp://www.tkk7.com/seoyouhua/services/trackbacks/431743.html使用 Google Prettify 實(shí)現(xiàn)代碼高亮

今天這篇文章主要講述使用 google-code-prettify 來(lái)實(shí)現(xiàn)代碼的高亮顯示,prettify 非常小巧且配置簡(jiǎn)單,使用它來(lái)實(shí)現(xiàn)代碼的高亮顯示是個(gè)不錯(cuò)的選擇。

下邊我們簡(jiǎn)單看看 prettify.js 的使用方法:

1.引入 jQuery 文件和 prettify.js 文件

<script src="http://libs.baidu.com/jquery/1.9.0/jquery.min.js"></script>
<script src="prettify.js"type="text/javascript"></script>
<link href="/prettify.css" type="text/css" rel="stylesheet" />
2.調(diào)用 prettify.js 實(shí)現(xiàn)代碼高亮

在 body 標(biāo)簽上添加調(diào)用方法,如下:
<body onload="prettyPrint()">
</body>
將你需要高亮顯示的代碼片斷放在 pre標(biāo)記里,如下:
<pre class="prettyprint">
    @*你的代碼片斷*@
</pre>

使用jQuery小技巧實(shí)現(xiàn)優(yōu)化

上述方法可以實(shí)現(xiàn)代碼的高亮,但每次手動(dòng)為pre標(biāo)簽添加"prettyprint"類,顯示有些麻煩。
使用下邊的代碼片斷來(lái)解決這個(gè)問(wèn)題并替換掉 body 的"onload"的事件,實(shí)現(xiàn)分離:

$(window).load(function(){
  $("pre").addClass("prettyprint"); prettyPrint();
})

到這我們應(yīng)該已經(jīng)成功使用 prettify.js 實(shí)現(xiàn)了代碼的高亮顯示,為了提高頁(yè)面加載速度,我們應(yīng)該將引用的js文件放置在底部
下載地址:http://code.google.com/p/google-code-prettify/


V8微商網(wǎng) 2016-09-05 20:21 發(fā)表評(píng)論
]]>
javascript事件查詢綜合http://www.tkk7.com/seoyouhua/archive/2014/11/14/420088.htmlV8微商網(wǎng)V8微商網(wǎng)Fri, 14 Nov 2014 07:04:00 GMThttp://www.tkk7.com/seoyouhua/archive/2014/11/14/420088.htmlhttp://www.tkk7.com/seoyouhua/comments/420088.htmlhttp://www.tkk7.com/seoyouhua/archive/2014/11/14/420088.html#Feedback0http://www.tkk7.com/seoyouhua/comments/commentRss/420088.htmlhttp://www.tkk7.com/seoyouhua/services/trackbacks/420088.htmljavascript事件查詢綜合click() 對(duì)象.click() 使對(duì)象被點(diǎn)擊。closed 對(duì)象.closed 對(duì)象窗口是否已關(guān)閉true/falseclearTimeout(對(duì)象) 清除已設(shè)置的setTimeout對(duì)象clearInterval(對(duì)象) 清除已設(shè)置的setInterval對(duì)象confirm("提示信息") 彈出確認(rèn)框,確定返回true取消返回falsecursor:樣式 更改鼠標(biāo)樣式 hand crosshair text wait help default auto e/s/w/n-resize

event.clientX 返回最后一次點(diǎn)擊鼠標(biāo)X坐標(biāo)值;event.clientY 返回最后一次點(diǎn)擊鼠標(biāo)Y坐標(biāo)值;event.offsetX 返回當(dāng)前鼠標(biāo)懸停X坐標(biāo)值event.offsetY 返回當(dāng)前鼠標(biāo)懸停Y坐標(biāo)值

document.write(document.lastModified) 網(wǎng)頁(yè)最后一次更新時(shí)間document.ondblclick=x 當(dāng)雙擊鼠標(biāo)產(chǎn)生事件document.onmousedown=x 單擊鼠標(biāo)鍵產(chǎn)生事件

document.body.scrollTop; 返回和設(shè)置當(dāng)前豎向滾動(dòng)條的坐標(biāo)值,須與函數(shù)配合,document.body.scrollLeft; 返回和設(shè)置當(dāng)前橫向滾動(dòng)務(wù)的坐標(biāo)值,須與函數(shù)配合,document.title document.title="message"; 當(dāng)前窗口的標(biāo)題欄文字document.bgcolor document.bgcolor="顏色值"; 改變窗口背景顏色document.Fgcolor document.Fgcolor="顏色值"; 改變正文顏色document.linkcolor document.linkcolor="顏色值"; 改變超聯(lián)接顏色document.alinkcolor document.alinkcolor="顏色值"; 改變正點(diǎn)擊聯(lián)接的顏色document.VlinkColor document.VlinkColor="顏色值"; 改變已訪問(wèn)聯(lián)接的顏色document.forms.length 返回當(dāng)前頁(yè)form表單數(shù)document.anchors.length 返回當(dāng)前頁(yè)錨的數(shù)量document.links.length 返回當(dāng)前頁(yè)聯(lián)接的數(shù)量document.onmousedown=x 單擊鼠標(biāo)觸發(fā)事件document.ondblclick=x 雙擊鼠標(biāo)觸發(fā)事件defaultStatus window.status=defaultStatus; 將狀態(tài)欄設(shè)置默認(rèn)顯示

function function xx(){...} 定義函數(shù)isNumeric 判斷是否是數(shù)字innerHTML xx=對(duì)象.innerHTML 輸入某對(duì)象標(biāo)簽中的html源代碼innerText divid.innerText=xx 將以div定位以id命名的對(duì)象值設(shè)為XX

location.reload(); 使本頁(yè)刷新,target可等于一個(gè)刷新的網(wǎng)頁(yè)

Math.random() 隨機(jī)涵數(shù),只能是0到1之間的數(shù),如果要得到其它數(shù),可以為*10,再取整Math.floor(number) 將對(duì)象number轉(zhuǎn)為整數(shù),舍取所有小數(shù)Math.min(1,2) 返回1,2哪個(gè)小Math.max(1,2) 返回1,2哪個(gè)大

navigator.appName 返回當(dāng)前瀏覽器名稱navigator.appVersion 返回當(dāng)前瀏覽器版本號(hào)navigator.appCodeName 返回當(dāng)前瀏覽器代碼名字navigator.userAgent 返回當(dāng)前瀏覽器用戶代標(biāo)志

onsubmit onsubmit="return(xx())" 使用函數(shù)返回值opener opener.document.對(duì)象 控制原打開(kāi)窗體對(duì)象

prompt xx=window.prompt("提示信息","預(yù)定值"); 輸入語(yǔ)句parent parent.框架名.對(duì)象 控制框架頁(yè)面

return return false 返回值random 隨機(jī)參數(shù)(0至1之間)reset() form.reset(); 使form表單內(nèi)的數(shù)據(jù)重置

split("") string.split("") 將string對(duì)象字符以逗號(hào)隔開(kāi)submit() form對(duì)象.submit() 使form對(duì)象提交數(shù)據(jù)

String對(duì)象的 charAt(x)對(duì)象 反回指定對(duì)象的第多少位的字母 lastIndexOf("string") 從右到左詢找指定字符,沒(méi)有返回-1 indexOf("string") 從左到右詢找指定字符,沒(méi)有返回-1 LowerCase() 將對(duì)象全部轉(zhuǎn)為小寫(xiě) UpperCase() 將對(duì)象全部轉(zhuǎn)為大寫(xiě)substring(0,5) string.substring(x,x) 返回對(duì)象中從0到5的字符setTimeout("function",time) 設(shè)置一個(gè)超時(shí)對(duì)象setInterval("function",time) 設(shè)置一個(gè)超時(shí)對(duì)象

toLocaleString() x.toLocaleString() 從x時(shí)間對(duì)象中獲取時(shí)間,以字符串型式存在typeof(變量名) 檢查變量的類型,值有:String,Boolean,Object,Function,Underfined

window.event.button==1/2/3 鼠標(biāo)鍵左鍵等于1右鍵等于2兩個(gè)鍵一起按為3window.screen.availWidth 返回當(dāng)前屏幕寬度(空白空間)window.screen.availHeight 返回當(dāng)前屏幕高度(空白空間)window.screen.width 返回當(dāng)前屏幕寬度(分辨率值)window.screen.height 返回當(dāng)前屏幕高度(分辨率值)window.document.body.offsetHeight; 返回當(dāng)前網(wǎng)頁(yè)高度window.document.body.offsetWidth; 返回當(dāng)前網(wǎng)頁(yè)寬度window.resizeTo(0,0) 將窗口設(shè)置寬高window.moveTo(0,0) 將窗口移到某位置window.focus() 使當(dāng)前窗口獲得焦點(diǎn)window.scroll(x,y) 窗口滾動(dòng)條坐標(biāo),y控制上下移動(dòng),須與函數(shù)配合window.open() window.open("地址","名稱","屬性") 屬性:toolbar(工具欄),location(地址欄),directions,status(狀態(tài)欄), menubar(菜單欄),scrollbar(滾動(dòng)條),resizable(改變大小), width(寬),height(高),fullscreen(全 屏),scrollbars(全屏?xí)r無(wú)滾動(dòng)條無(wú)參 數(shù),channelmode(寬屏),left(打開(kāi)窗口x坐標(biāo)),top(打開(kāi)窗口y坐標(biāo)) window.location = 'view-source:' + window.location.href 應(yīng)用事件查看網(wǎng)頁(yè)源代碼;

a=new Date(); //創(chuàng)建a為一個(gè)新的時(shí)期對(duì)象y=a.getYear(); //y的值為從對(duì)象a中獲取年份值 兩位數(shù)年份y1=a.getFullYear(); //獲取全年份數(shù) 四位數(shù)年份m=a.getMonth(); //獲取月份值d=a.getDate(); //獲取日期值d1=a.getDay(); //獲取當(dāng)前星期值h=a.getHours(); //獲取當(dāng)前小時(shí)數(shù)m1=a.getMinutes(); //獲取當(dāng)前分鐘數(shù)s=a.getSeconds(); //獲取當(dāng)前秒鐘數(shù)

對(duì)象.style.fontSize="文字大小";單位:mm/cm/in英寸/pc帕/pt點(diǎn)/px象素/em文字高1in=1.25cm1pc=12pt1pt=1.2px(800*600分辯率下)

文本字體屬性: fontSize大小 family字體 color顏色 fontStyle風(fēng)格,取值為normal一般,italic斜體,oblique斜體且加粗 fontWeight加粗,取值為100到900不等,900最粗,light,normal,bold letterSpacing間距,更改文字間距離,取值為,1pt,10px,1cm textDecoration:文字修飾;取值,none不修飾,underline下劃線,overline上劃線 background:文字背景顏色, backgroundImage:背景圖片,取值為圖片的插入路徑

點(diǎn)擊網(wǎng)頁(yè)正文函數(shù)調(diào)用觸發(fā)器:

1.onClick 當(dāng)對(duì)象被點(diǎn)擊2.onLoad 當(dāng)網(wǎng)頁(yè)打開(kāi),只能書(shū)寫(xiě)在body中3.onUnload 當(dāng)網(wǎng)頁(yè)關(guān)閉或離開(kāi)時(shí),只能書(shū)寫(xiě)在body中4.onmouseover 當(dāng)鼠標(biāo)懸于其上時(shí)5.onmouseout 當(dāng)鼠標(biāo)離開(kāi)對(duì)象時(shí)6.onmouseup 當(dāng)鼠標(biāo)松開(kāi)7.onmousedown 當(dāng)鼠標(biāo)按下鍵8.onFocus 當(dāng)對(duì)象獲取焦點(diǎn)時(shí)9.onSelect 當(dāng)對(duì)象的文本被選中時(shí)10.onChange 當(dāng)對(duì)象的內(nèi)容被改變11.onBlur 當(dāng)對(duì)象失去焦點(diǎn)onsubmit=return(ss())表單調(diào)用時(shí)返回的值

直線 border-bottom:1x solid black虛線 border-bottom:1x dotted black點(diǎn)劃線 border-bottom:2x dashed black雙線 border-bottom:5x double black槽狀 border-bottom:1x groove black脊?fàn)?border-bottom:1x ridge black

1.邊緣高光glow(color=顏色,strength=亮光大小)
2.水平翻轉(zhuǎn)fliph() 使對(duì)象水平翻轉(zhuǎn)180度
3.垂直翻轉(zhuǎn)flipv() 使對(duì)象垂直翻轉(zhuǎn)180度
4.對(duì)象模糊blur(add=true/false direction=方向 strength=強(qiáng)度) add指定是否按印象畫(huà)派進(jìn)行模糊direction模糊方向strength模糊強(qiáng)度5.對(duì)象透明alpha(opaction=0-100,finishopacity=0-100,style=0/1/2/3) opaction對(duì)象整體不透明值finishopacity當(dāng)對(duì)象利用了漸透明時(shí)該項(xiàng)指定結(jié)束透明位置的不透明值style指定透明方式0為整體透明,1為線型透明,2為圓型透明,3為矩形透明6.去除顏色chroma(color=顏色值)使對(duì)象中顏色與指定顏色相同區(qū)域透明7.建立陰影dropshadow(color=陰影顏色,offx=水平向左偏離像素,offy=水平向下偏離像素)8.去色gray()使對(duì)象呈灰度顯示9.負(fù)片效果invert()使對(duì)象呈底片效果10.高光light()使對(duì)象呈黑色顯示11.遮蓋mask(color=顏色)使整個(gè)對(duì)象以指定顏色進(jìn)行蒙板一次

opacity 表透明度水平.0~100,0表全透明,100表完全不透明finishopacity表想要設(shè)置的漸變透明效果.0~100.style 表透明區(qū)的形狀.0表統(tǒng)一形狀.1表線形.2表放射形.3表長(zhǎng)方形.startx.starty表漸變透明效果的開(kāi)始時(shí)X和Y坐標(biāo).finishx,finishy漸變透明效果結(jié)束時(shí)x,y 的坐標(biāo).add有來(lái)確定是否在模糊效果中使有原有目標(biāo).值為0,1.0表"否",1表"是".direction設(shè)置模糊的方向.0度表垂直向上,45度為一個(gè)單位.默認(rèn)值是向左270度.left,right,down,up.strength 只能用整數(shù)來(lái)確定.代表有多少個(gè)像素的寬度將受到模糊影響.默認(rèn)是5個(gè).color要透明的顏色.offx,offy分別是x,y 方向陰影的偏移量.positive指投影方式.0表透明像素生成陰影.1表只給出不透明像素生成陰影..

AddAmbient:加入包圍的光源.AddCone:加入錐形光源.AddPoint加入點(diǎn)光源Changcolor:改變光的顏色.Changstrength:改變光源的強(qiáng)度.Clear:清除所有的光源.MoveLight:移動(dòng)光源.

freq是波紋的頻率,在指定在對(duì)象上一區(qū)需要產(chǎn)生多少個(gè)完事的波紋.lightstrength可對(duì)于波紋增強(qiáng)光影的效果.顯著0~100正整數(shù),正弦波開(kāi)始位置是0~360度.0表從0度開(kāi)始,25表從90度開(kāi)始.strength表振幅大小.

hand style="cursor:hand"crosshair style="cursor:crosshair"text style="cursor:text"wait style="cursor:wait"default style="cursor:default" help style="cursor:help"e-resize style="cursor:e-resize"ne-resize style="cursor:ne-resize"n-resize style="cursor:n-resize"nw-resize style="cursor:nw-resize"w-resize style="cursor:w-resize"s-resize style="cursor:s-resize"sw-resize style="cursor:sw-resize "se-resize style="cursor:se-resize"auto style="cursor:auto"

-->



V8微商網(wǎng) 2014-11-14 15:04 發(fā)表評(píng)論
]]>
介紹一些 Java NIO 的學(xué)習(xí)文章,以方便各位的學(xué)習(xí)!http://www.tkk7.com/seoyouhua/archive/2014/11/14/420089.htmlV8微商網(wǎng)V8微商網(wǎng)Fri, 14 Nov 2014 07:04:00 GMThttp://www.tkk7.com/seoyouhua/archive/2014/11/14/420089.htmlhttp://www.tkk7.com/seoyouhua/comments/420089.htmlhttp://www.tkk7.com/seoyouhua/archive/2014/11/14/420089.html#Feedback0http://www.tkk7.com/seoyouhua/comments/commentRss/420089.htmlhttp://www.tkk7.com/seoyouhua/services/trackbacks/420089.htmlNIO 入門(mén): http://www-900.ibm.com/developerWorks/cn/cnonlinetutorial.nsf/gethtml?OpenAgent&url=/developerWorks/cn/education/java/j-nio/tutorial/index.html

Java NIO原理和使用 : http://www.jdon.com/concurrent/nio%D4%AD%C0%ED%D3%A6%D3%C3.htm

Merlin 給 Java 平臺(tái)帶來(lái)了非阻塞 I/O :

http://www-900.ibm.com/developerWorks/cn/java/j-javaio/index.shtml

Java NIO API詳解 : http://blog.csdn.net/daijialin/archive/2004/12/27/231384.aspx

Java New I/O的使用 : http://dev.csdn.net/develop/article/22/22063.shtm

最后推薦一本書(shū)籍: Java NIO

相信有了這些網(wǎng)絡(luò)資料,你的Java NIO的基礎(chǔ)一定可以得到提高!



V8微商網(wǎng) 2014-11-14 15:04 發(fā)表評(píng)論
]]>
讀取foxpro格式的dbf文件http://www.tkk7.com/seoyouhua/archive/2014/11/14/420086.htmlV8微商網(wǎng)V8微商網(wǎng)Fri, 14 Nov 2014 07:03:00 GMThttp://www.tkk7.com/seoyouhua/archive/2014/11/14/420086.htmlhttp://www.tkk7.com/seoyouhua/comments/420086.htmlhttp://www.tkk7.com/seoyouhua/archive/2014/11/14/420086.html#Feedback0http://www.tkk7.com/seoyouhua/comments/commentRss/420086.htmlhttp://www.tkk7.com/seoyouhua/services/trackbacks/420086.html原文出處

終于整理完dbf文件讀寫(xiě)的java源碼,歡迎使用

修改以下代碼

private void init(InputStream inputstream) throws JDBFException { try { stream = new DataInputStream(inputstream); int i = readHeader(); fields = new JDBField[i]; int j = 1; for(int k = 0; k < i; k++) { fields[k] = readFieldHeader(); j += fields[k].getLength(); }

if(stream.read() < 1) throw new JDBFException("Unexpected end of file reached."); nextRecord = new byte[j]; try { //stream.readFully(nextRecord); stream.read(new byte[263]); stream.readFully(nextRecord); } catch(EOFException eofexception) { nextRecord = null; stream.close(); } } catch(IOException ioexception) { throw new JDBFException(ioexception); } }

private int readHeader() throws IOException, JDBFException { byte abyte0[] = new byte[16]; try { stream.readFully(abyte0); } catch(EOFException eofexception) { throw new JDBFException("Unexpected end of file reached."); } int i = abyte0[8]; if(i < 0) i += 256; i += 256 * abyte0[9]; i -= 264; i = --i / 32; //i = --i / 32; //i--; try { stream.readFully(abyte0); } catch(EOFException eofexception1) { throw new JDBFException("Unexpected end of file reached."); } return i; }



V8微商網(wǎng) 2014-11-14 15:03 發(fā)表評(píng)論
]]>
主站蜘蛛池模板: 亚洲国产综合精品中文字幕| 日韩成人精品日本亚洲| 国产精成人品日日拍夜夜免费| 中文无码日韩欧免费视频| 国产猛烈高潮尖叫视频免费| 亚洲国产激情在线一区| 在线免费观看国产| 久久久久亚洲精品影视| 拍拍拍无挡视频免费观看1000| 麻豆高清免费国产一区| 亚洲色成人网站WWW永久| 一道本不卡免费视频| 伊在人亚洲香蕉精品区麻豆| 美女18毛片免费视频| 在线免费观看国产视频| 亚洲人成电影网站免费| 最近中文字幕免费mv视频7| 亚洲不卡在线观看| 成人免费视频77777| www.亚洲成在线| 亚洲高清中文字幕免费| ww亚洲ww在线观看国产| 日本免费网址大全在线观看| 亚洲国产日韩在线一区| 4虎永免费最新永久免费地址| 久久亚洲国产成人影院网站| 国产91成人精品亚洲精品| 免费观看午夜在线欧差毛片| 久久亚洲AV成人无码国产最大| 99在线视频免费| 亚洲天天在线日亚洲洲精| 一级毛片在线免费看| 久久久久亚洲精品美女| 24小时免费看片| 亚洲成AV人综合在线观看 | 野花高清在线观看免费3中文 | 无码乱人伦一区二区亚洲| 久久精品成人免费网站| 久久久久久亚洲精品成人| 久久午夜夜伦鲁鲁片免费无码影视| 在线亚洲精品福利网址导航|