泛微流程界面添加按钮事件

<script type="text/javascript"> 
jQuery(document).ready(function(){
	var button="<input title='取消' class='e8_btn_top_first' style='align: right;'  type='button' value='取消' onclick='click_sj();'>";  //onclick为点击后事件
	jQuery("#djqx").html(button);
});

function click_sj(){
	alert("ok");
}
</script>

image.png


另一个时间触发代码

<script type="text/javascript"> 
jQuery(document).ready(function(){
	var button="<input title='查询' class='e8_btn_top_first' style='align: right;'  type='button' value='查询' onclick="onShowBrowser2('6707','/systeminfo/BrowserMain.jsp?url=/integration/sapSingleBrowser.jsp?type=browser.13','','226',field6707.getAttribute('viewtype'));">";  //onclick为点击后事件
	jQuery("#djqx").html(button);
});


</script>


关键词:

网友评论

发表评论