PHP計算字串相似度 12月 06, 2011 $str1 = 'this is a pen.'; $str2 = 'is this a pen?'; similar_text($str1, $str2, $percent); echo $percent; 閱讀完整內容
在A標籤中使用onclick=location.href進行轉頁 12月 05, 2011 在A標籤中使用onclick=location.href進行轉頁 範例: <a href='http://tw.yahoo.com' onclick="location.href='http://www.google.com/'; return false; ">test</a> 重點在於紅字部分的 return false;,讓href的內容失效。 閱讀完整內容