js 杂记 记录

1.触发a标签

			var comment = document.getElementById('tz');				
			if (document.all) {
			 	// For IE				 
				comment.click();
			} else if (document.createEvent) {
			   //FOR DOM2				 
				var ev = document.createEvent('MouseEvents');
			 	ev.initEvent('click', false, true);
			 	comment.dispatchEvent(ev);
			}

2 jqueryeasy ui 改变url:

$('#tt').datagrid({url:'houseaction_findall.action?'+a,queryParams:{}});


你可能感兴趣的:(js 杂记 记录)