在 Html5 中:- 在页脚中,它将存储动态 cuming 的数据,页脚部分应该通过触摸而不是整个窗口移动,只有页脚应该随着数据从左到右移动
<div data-role="page" id="page1">
         <div data-role="footer" data-position="fixed" id="footer">
              <div class="menu" id="menu_button1" id="scroll_menu" onmouseover='this.style["overflowX"]="scroll";'  onmouseout='this.style["overflowX"]="visible";'></div>
         </div> 
</div>
在 Jquery 中:- 我正在使用 Ajax 调用来动态获取数据,并将该数据存储在 Htm5 的页脚部分中,我想使用触摸事件如何使用请帮助我
function callMenuConnection() {  
        $.support.cors = true;
           $.ajax({
                type: "POST",
                url: "one.html",
                contentType: "text/xml",
                dataType: "xml",
                data: "",
                cache:false,
                processData:false,
                crossDomain:true,
                success: processSuccess,
                error: processError
            }); 
      }
      function processSuccess(data) {
             $(data).find("category").each(function () {     
             var id = $(this).find('id').text();
             var title = $(this).find('title').text();
             var scripts = "<a href='#' data-role='button' data-theme='b' data-inline='true'>"+title+"</a>"                
            $("#menu_button1").append(scripts).trigger('create'); 
        });
      }
         function processError(data)
           {
               alert("error");
           }
    $(document).unbind('pageinit').bind('pageinit', function () {
         callMenuConnection(); 
     });