jQuery表单函数模板 泛微ecology
云起网2019-07-05
二次开发626
泛微ecology jQuery表单函数列表,方便查询
jQuery(document).ready(function(){
}); 下拉选择事件
jQuery("#divid").bindPropertyChange(function(){
});//end提交事件
checkCustomize=function(){
return true;
};按元素id获取
var nodeid = jQuery("#nodeid").val();按name获取
var nodeid = jQuery("input[name='nodeid']").val();中文参数
var name= encodeURI(encodeURI(name));
ajax提交
jQuery.ajax({
type:'post',
url:"/action.jsp",
data:{"id":1,"name","2"},
dataType : "json",
async:false,
success:function do4Success (obj){
if(obj && obj.res){
top.Dialog.alert("成功!");
return false;
}else{
top.Dialog.alert("失败!");
return false;
}
}, error:function (){
top.Dialog.alert("发生错误!");
return false;
}
});弹出对话框
function openDialog(title,url) {
var dlg=new window.top.Dialog();//定义Dialog对象
dlg.currentWindow = window;
dlg.Model=true;
dlg.Width=100;
dlg.Height=100;
dlg.URL=url;
dlg.Title=title;
dlg.show();
}//确认对话框
top.Dialog.confirm("确认打印吗",function(){
window.location.href="/"+jQuery("#billid").val();
}) ;判断明细表
//判断明细表
checkCustomize = function (){
var index = jQuery("#indexnum0").val()-1;
for(var i=0;i<=index;i++){
if((jQuery("#id").val() && typeof(jQuery("#"id").val())!="undefined"){
top.Dialog.alert("请确认!");
return false
}
return true;
} 很赞哦! ()