功能在IOS9中不起作用 [英] function is not working in IOS9

查看:61
本文介绍了功能在IOS9中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此功能在IOS 9中不起作用。但它在所有其他浏览器中运行良好。



在ios中运行时会返回错误:



This function is not working in IOS 9 . But it is working fine in all other browsers.

while running in ios it returns an error :

SYNTAX_ERR: DOM Exception 12





成功函数返回局部视图(html页面)





success function returns partial view (html page)

function FetchProductList(id, type, title) {

    $.ajax({
        url: '/Product/Product/GetProductList?productListId=' + ProductListId,
        type: "POST",
        contentType: "application/html; charset=utf-8 ",
        dataType: 'json',
        params: { "productListId": selectedProductListId },
       data: $('form').serialize(),
        success: function (treedata) {
            debugger;
            $('#tableproductList').html(null);

            $('#tableproductList').append(treedata.responseText);

            FetchSupplierId(selectedProductListId);
            $('#productListHead').html('<h2 style="font-size:16px">' + title + ' (' + ListId + ': ' + accessCode + ')' + '</h2><input type="button" class="btn btn-common editProduct" value=' + '"' + EditandList + '"' + ' onclick="PrdctListDetails(2)"/>');
            $('#tableproductList').show();
            $('#treemainDiv').hide();
            FetchSchoolLocationId(selectedProductListId);

        },
        error: function (treedata) {

            $('#treemainDiv').hide();


        },
    });
}

推荐答案

.ajax({
url:' / Product / Product / GetProductList?productListId =' + ProductListId,
type: POST
contentType: application / html; charset = utf-8
dataType:' json'
params:{ productListId:selectedProductListId},
data :
.ajax({ url: '/Product/Product/GetProductList?productListId=' + ProductListId, type: "POST", contentType: "application/html; charset=utf-8 ", dataType: 'json', params: { "productListId": selectedProductListId }, data:


' form')。serialize(),
成功:功能(treedata){
调试器;
('form').serialize(), success: function (treedata) { debugger;


' #tableproductList')。html( null );
('#tableproductList').html(null);


这篇关于功能在IOS9中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆