想要从函数中传递字符串参数,需要在row.username中添加一些引号:
'<input type="button" onClick="func(' + row.username + ')" />';
这是框架中的传递字符串数据的一个案例。
想要从函数中传递字符串参数,需要在row.username中添加一些引号:
'<input type="button" onClick="func(' + row.username + ')" />';
这是框架中的传递字符串数据的一个案例。