摘要: 今天解决了一个bug,页面中有高德地图,就是用https打开网址,打不开显示空白,但是用http可以打开,把地图部分去掉就可以正常打开。 下面是引入的其中一个js: 原来引入的是: 注意秘钥改成自己的秘钥。 把引入的网址http改成https就可以了。所有引入的网址http的改成https 阅读全文
posted @ 2018-06-21 18:28 Echo的前端空间 阅读(156) 评论(0) 推荐(0) 编辑
摘要: //限制字符个数$("div").each(function(){ var maxwidth=50; if($(this).text().length>maxwidth){ $(this).text($(this).text().substring(0,maxwidth)); $(this).htm 阅读全文
posted @ 2018-01-15 11:34 Echo的前端空间 阅读(166) 评论(0) 推荐(0) 编辑
摘要: //判断浏览器是否支持 placeholder属性 function isPlaceholder(){ var input = document.createElement('input'); return 'placeholder' in input; } if (!isPlaceholder() 阅读全文
posted @ 2018-01-15 11:33 Echo的前端空间 阅读(82) 评论(0) 推荐(0) 编辑
摘要: <!--倒计时脚本 star--> var outTime = null, number = 60; $("#djsTime").click(function () { //倒计时 var CountDown = $(".CountDown"); if (outTime) { window.clea 阅读全文
posted @ 2018-01-15 11:32 Echo的前端空间 阅读(82) 评论(0) 推荐(0) 编辑