search

Home  >  Q&A  >  body text

javascript - input type="data" can get the value on the ios system and there is a response, but it does not get the value and there is no response on the Android phone. How to solve it?


// 时间查询
// $('.searchBtn').click(function(){
// dataSearch();
// $('#detailTbody').html('');
// $('#detailtfoot').html('');
// });
$('#detailTbody').html('');
$('#detailtfoot').html('');
function dataSearch(){

var riqi=$('#datasearch').val();
console.log(riqi);
var htmltable='';
var count='';
$.ajax({
    url:"../../../../OA_sys_PHP/phone_select.php",
    type:"post",
    data:{"riqi":riqi},
    success:function(result){
        console.log(result);
        for(var i=0;i<result.length;i++){
            htmltable+=`
            <tr>
            <td rowspan="2">${result[i].tid}</td>
            <td rowspan="2">${result[i].name}</td>
            <td rowspan="2">${result[i].data}</td>
            <td>${result[i].zhong}餐</td>
            <td>${result[i].zhongcan}</td>
        </tr>
        <tr>
            <td>${result[i].wan}餐</td>
            <td>${result[i].wancan}</td>
        </tr>
            `;
        }
        if(result.length!==undefined){
            count+=`
                <tr>
                <td colspan="2">中餐(次)</td>
                <td colspan="3">${result.length}</td>
            </tr>
            <tr>
                <td colspan="2">晚餐(次)</td>
                <td colspan="3">${result.length}</td>
            </tr>
            `;
        }
        $('#detailTbody').append(htmltable);
        $('#detailtfoot').append(count);
    },
    error:function(){
    }
});

};

曾经蜡笔没有小新曾经蜡笔没有小新2798 days ago495

reply all(1)I'll reply

  • 三叔

    三叔2017-06-12 09:27:07

    Android system does not support es6 syntax

    reply
    0
  • Cancelreply