摘要:
javascript中文参数编码url传递实例1.html页面代码如下:<!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" c 阅读全文
摘要:
window.onload = function(){ alert(trs[0].getElementsByTagName("td")[0].innerHTML)}</script> 阅读全文
摘要:
<scripttype="text/javascript">/*--获取网页传递的参数--*/functionrequest(paras){varurl=location.href;varparamStr=url.substring(url.indexOf('?')+1,url.length).split('&');varj;varparamObj={};for(vari=0;j=paramStr[i];i++){paramObj[j.substring(0,j.indexOf('=')).toLowerC 阅读全文
摘要:
function span_move_fun(){var span = document.getElementById("move_k");var span_left = $(span).offset().left;var span_top = $(span).offset().top;var start_left = $(span).offset().left;var start_top = $(span).offset().top;span.addEventListener('touchstart', function(event) {event.pre 阅读全文