0
test1.html为什么从php返回jquery mobile,它不起作用?
<script>$(function(){
$.get(
"test1.php",{},function(result){
//$("#result").html(result);
$("#result").html(result);
});});</script><div data-role="page" id="home">
<div data-role="header">
<h1>test</h1>
</div>
<div data-role="content">
<div id="result"></div>
</div>
test1.php
<? echo "<a href='#' id='btn_del' data-role='button' data-inline='true' data-icon='delete'>Del</a>"; ?>
它不显示按钮,但它只是显示超链接。 我该怎么办?
我已经试图通过插入$( “#btn_del”)按钮( “刷新”),但它仍然这么想的工作。 – ting 2013-05-10 10:34:50
你有没有在document.ready或类似的东西中实现它,我认为问题是加载脚本的方式... – SaurabhLP 2013-05-10 10:39:05