尝试使用pull include_once从基于数据的模板页面列表中提取。
$("#dialog").dialog({
resizable: true,
open: include_once 'application/views/templates/item_changed_modal.php',
width: 'auto',
这就是我实现它的方式。最终将根据要显示的数据动态更改“item_changed_modal”。现在只需在测试页面中进行硬编码。
可以以这种方式使用include_once吗?