摘要: 方法一: <script> function hideImg(i) { var imgs = i.contentWindow.document.getElementsByTagName('img'); for(var i=0;i<imgs.length;i++)imgs[i].style.displ 阅读全文
posted @ 2017-02-15 17:42 成忠 阅读(41975) 评论(1) 推荐(0) 编辑
摘要: $.ajax({ type:"get", url:spanUrl, dataType:'jsonp', jsonpCallback:'jsonp',//jsonp数据,需要数据库提供这个jsonp格式 success:function(selDate){ var htmlStr1 = '<a hre 阅读全文
posted @ 2017-02-15 15:46 成忠 阅读(6913) 评论(0) 推荐(0) 编辑
摘要: //var price=parseInt(data[0].price).toLocaleString();//仅支持PC端不支持移动端 //金钱价格每3位一个逗号function addCommas(nStr){ nStr += '';//改变成字符串 x = nStr.split('.'); x1 阅读全文
posted @ 2017-02-15 15:44 成忠 阅读(408) 评论(0) 推荐(0) 编辑