Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ajax/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jQuery移动弹出窗口未正确显示_Jquery_Ajax_Mobile - Fatal编程技术网

jQuery移动弹出窗口未正确显示

jQuery移动弹出窗口未正确显示,jquery,ajax,mobile,Jquery,Ajax,Mobile,我在显示jquery mobile弹出窗口时遇到问题。这是我从servlet返回的弹出窗口代码 <a href='#popupBasic_1' data-rel='popup' style='text-decoration: none; background-color: red; display: block; width: 40px; height: 40px; text-align: center; position: absolute; font-size: 13

我在显示jquery mobile弹出窗口时遇到问题。这是我从servlet返回的弹出窗口代码

 <a href='#popupBasic_1' data-rel='popup'
        style='text-decoration: none; background-color: red; display: block; width: 40px; height: 40px; text-align: center; position: absolute; font-size: 13px; font-weight: bold; color: white'>bill</a>
    <div data-role='popup' id='popupBasic_1'>
        <div style='height: 200px; width: 300px'>
            <div
                style='text-decoration: none; background-color: red; display: block; width: 40px; height: 40px; text-align: center; font-size: 13px; font-weight: bold; color: white'>bill</div>
            <div
                style='text-decoration: none; background-color: blue; display: block; width: 40px; height: 40px; text-align: center; font-size: 13px; font-weight: bold; color: white'>bob</div>
        </div>
    </div>
我已经尝试了以上两种情况,它们在页面的弹出窗口中显示这两个元素。如果我使用这个弹出代码并手动将其放置在div标记中,它就会工作

感谢您的帮助。

尝试以下方法:

$("#users").html(result).trigger("create");

晚上我会试试这个。谢谢你的回复,我会通知你的。
$.get(url).success(function(result) {
            //document.getElementById("users").innerHTML = result;
            $("#users").html("<code>" + result + "</code>");
$("#users").html(result).trigger("create");