【发布时间】:2015-05-28 01:28:58
【问题描述】:
Ajax.php,php 文件中的脚本标签
<script>
success: function(data) {
var message = data.message; //Json data
if ( data.status == 1 ) {
jQuery("#msgError").html(<?php echo JText::_(' + message + ');?>);
}
}
是否可以像上面那样在 php 中回显 JS 变量?
【问题讨论】: