javascript - call php function inside jquery
问题描述
$.each(data, function (rowNumber, rowData) {
var row = $('<tr>');
row.append($('<td>', {
'html': '*HERE*'
}));
$('#js-lobby-table').append(row);
});
state = data;
};
am I need to call the rowData and the PHP function in the HERE I don't know how to combine this
PHP function is getName
I have tried this unsuccessfully:
'html': 'rowData['UID']'
sample of data is UID
解决方案
推荐阅读
- spring-boot - 没有可用于服务的服务器:localhost
- c# - Assembly-CSharp.csproj 错误和 Intellisense 在 VSCode 中不起作用
- spring-boot - 使用 Spring Webflux 实现 trace-id
- c# - 获取调查 C# 中选择的用户数
- c# - ListView 在更新其屏幕后不保存更改
- postgresql - 在使用 \COPY 导入数据时,在 Postgres 中生成自定义列值的最快方法是什么?
- reactjs - React - 复合组件(对象作为 React 子级无效)
- python - 通过 django 中的 url 调用 API
- python - 如何找到具有基本事实(完美图像)的数据集来比较孔填充方法?
- sql-server - SQL datetime2 不能保存日期时间