使用JQ获取data-id的值

142 阅读1分钟
<a data-id="{{entrustCompanyId}}" name="dismissed">被驳回</a>
//已注销
$("table").on("click","[name='notice']",function(entrustCompanyId){
	var entrustCompanyId = $(this).data("id"); 
	$.dialog.open('dialog-notice.html?entrustCompanyId=' + entrustCompanyId, {
		title: false,
		width: 670,
		height: 480,
		cancel: false,
		lock: true,
		fixed: true,
		padding: '0px',
		close: function () {
		}
	}, false);
})