前端之家收集整理的这篇文章主要介绍了
如果未定义则为0否则为自定义数据(前台),
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
一句代码分享给你们,自己感悟去吧,不懂的,留言评论
- run : function(){
- $.ajax({
- url:url,
- data:{id:id,name:("undefined" == typeof zhang || zhang == null)?0 :zhang},
- type:'post',108); list-style:decimal-leading-zero outside; line-height:18px; margin:0px!important; padding:0px 3px 0px 10px!important"> dataType:'json',108); list-style:decimal-leading-zero outside; line-height:18px; margin:0px!important; padding:0px 3px 0px 10px!important">
- beforeSend:function(){},108); list-style:decimal-leading-zero outside; line-height:18px; margin:0px!important; padding:0px 3px 0px 10px!important"> success:function(){},108); list-style:decimal-leading-zero outside; line-height:18px; margin:0px!important; padding:0px 3px 0px 10px!important"> error:function(){}
- })
- }
原文链接:https://www.f2er.com/ajax/160996.html