目前分類:RD (33)

瀏覽方式: 標題列表 簡短摘要

使用Chrome建立書籤YuoTube Downloas,內容如下

javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://www.youtubesnips.com/download.js';})();

Will(小威) 發表在 痞客邦 留言(1) 人氣()

package will.test;

import java.io.IOException;

Will(小威) 發表在 痞客邦 留言(0) 人氣()

out.println("Protocol: " + request.getProtocol()); 
out.println("Scheme: " + request.getScheme()); 

Will(小威) 發表在 痞客邦 留言(0) 人氣()

<script type="text/javascript">

var URL = document.location.toString();

Will(小威) 發表在 痞客邦 留言(0) 人氣()

//轉址
<script>

Will(小威) 發表在 痞客邦 留言(0) 人氣()

//接收中文參數
String cname = new String(request.getParameter("cname").getBytes("ISO-8859-1"),"UTF-8");

Will(小威) 發表在 痞客邦 留言(0) 人氣()

檔案相關

---------------------------------------------------------------------------------------------

Will(小威) 發表在 痞客邦 留言(0) 人氣()

IE不接受以下程式碼:

alert("mValue="+mValue);

Will(小威) 發表在 痞客邦 留言(0) 人氣()

Javascript 新開警告視窗
------------------------------------------

Will(小威) 發表在 痞客邦 留言(0) 人氣()

iphome的header如下:
Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0 like Mac OS X; en-us) 
AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5
Mobile/8A293 Safari/6531.22.7
使用script判斷使用者系統的語法如下: 
<script type="text/javascript">
alert('您所使用的系統是:');

alert('navigator.userAgent');
</script>
使用JAVA判斷使用者系統的語法如下: 
String os = System.getProperty("os.name").toLowerCase();

Will(小威) 發表在 痞客邦 留言(0) 人氣()

範例一
JSP檔案(javabeandemo.jsp)
<jsp:useBean id="gcd" class="beantools.math.FindGCD" />
<jsp:setProperty name="gcd" property="*" />
<%= request.getParameter("m") %> 與 <%= request.getParameter("n") %>
最大公因數:<jsp:getProperty name="gcd" property="GCD" />

在property設定"*",表示將自動尋找request中符合JavaBean中setter名稱的參數值,
即如果request的參數名稱若符合setXXX()中XXX名稱,

Will(小威) 發表在 痞客邦 留言(0) 人氣()

substring()
它有兩種形式,第一種是:String substring(int startIndex)

Will(小威) 發表在 痞客邦 留言(0) 人氣()

//符合SQL server Data格式的「現在時間」
import java.util.Date;

Will(小威) 發表在 痞客邦 留言(0) 人氣()

«12