我需要以下功能的帮助。该函数mainApp.php返回 1,但执行Else了部分success IF语句。我怀疑表达式的正确性function(html,msg)。如何解决这个问题呢?
更新(工作代码):
function click_function_ps() {
    $.ajax({
        url: 'callpage.php?page=optim/mainApp.php',
        data: 'myParam='+$('#myParam').val(),
        dataType: 'json',
        success: function(output){
            if(output.msg === 1){
                $('#myContainer').html(output.html);
            } else {
                $dialog.dialog('open');
                return false;
            }
        }
    });
}
主应用程序.php
 $html_code = '<table width="100%">
                <tr>
                    <td width="100%">
                        <div class="scrollbar" id="chart"><img class="displayed" src="ganttchart.php"></div>
                    </td>
                </tr>
            </table>';
            echo json_encode(array('msg' => 1, 'html' => $html_code));