1.跳转页面
window.location.href= $.WEB_ROOT + "/aip/project/applyproject/departmanage/expertapp.do?pid="+ids+"&typecode="+typecode;
2.jquery 中 jQgrid
{
name : 'projectName',
index : 'PNAME',
width : 120,
align : 'right',
formatter :function(cellvalue ,options, rowObject){
return '<a href="/wee/aip/project/applyproject/showDetailApplication.do?aid='+
rowObject["pid"]
+'" style="text-decoration:underline;color: blue;">'+overflow(cellvalue)+'</a>'; }
}
{
name : 'pid',
index : 'PID',
width : 30,
align : 'center',
formatter :function(cellvalue ,options, rowObject){
return '<a href="/wee/aip/project/applyproject/showDetailApplication.do?aid='+cellvalue+'" style="text-decoration:underline;color: blue;">详情</a>'; }
}
3. 清空文本框
//清空表单上所有文本框的空格
$('input[type=text]:not(:disabled)').each(function(){
$(this).val($.trim($(this).val()));
});
//清空表单上所有文本域的空格
$('textarea:not(:disabled)').each(function(){
$(this).val($.trim($(this).val()));
});
4、定位到tab页
$("#tabs").tabs("select","tabs-1");//定位到tab页