javascript - input type="data"在ios系统上可以获取到值,并且有响应,但在安卓手机上却没有获取到值并且没响应,请问如何解决?
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-06-12 09:25:07
[JavaScript讨论组]


// 时间查询
// $('.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(){
    }
});

};

曾经蜡笔没有小新
曾经蜡笔没有小新

全部回复(1)
三叔

安卓系统不支持es6语法

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号