function audit2(){
var row = $('#datagrid').datagrid('getSelected');
if (row){
var userinfo_headimg = "D:\face\Image\demo1.jpg";
var userinfo_idcardpos = row.userinfo_idcardpos;
var userinfo_idcardneg = row.userinfo_idcardneg;
var userinfo_handidcard = row.userinfo_handidcard;
document.write("<img src='\face\Image\demo1.jpg'/>");
//var reg=new RegExp(" ","g"); //创建正则RegExp对象
//userinfo_headimg=userinfo_headimg.replace(reg,"");
var newwindow = window.open("", "", "width=600,height=400");
newwindow.document.write("<img src='/face/Image/demo1.jpg'/>");
//document.write("<img src=userinfo_handidcard/>");
}else{
$.messager.alert('提示', '请选择要编辑的记录!', 'error');
}
}
为了测试,我把里面路径写死了 但不管怎么换路径一直返回不回来
var row = $('#datagrid').datagrid('getSelected');
if (row){
var userinfo_headimg = "D:\face\Image\demo1.jpg";
var userinfo_idcardpos = row.userinfo_idcardpos;
var userinfo_idcardneg = row.userinfo_idcardneg;
var userinfo_handidcard = row.userinfo_handidcard;
document.write("<img src='\face\Image\demo1.jpg'/>");
//var reg=new RegExp(" ","g"); //创建正则RegExp对象
//userinfo_headimg=userinfo_headimg.replace(reg,"");
var newwindow = window.open("", "", "width=600,height=400");
newwindow.document.write("<img src='/face/Image/demo1.jpg'/>");
//document.write("<img src=userinfo_handidcard/>");
}else{
$.messager.alert('提示', '请选择要编辑的记录!', 'error');
}
}
为了测试,我把里面路径写死了 但不管怎么换路径一直返回不回来