html onclick中传参如果不是变量要用''包起来,否则not defined异常

{
											field : 'uuid',
											title : '操作',
											formatter : function(value, row,
													index) {
												return "<a id='btn_create' src='' onclick=\"updateView('"+value+"')\" class='reset'>确认入库</a>";
											}
										}

突然的不会拼接字符串~

猜你喜欢

转载自blog.csdn.net/wenyimutouren/article/details/83958532