摘要: 最近去面试被问到let和var的区别,我简单总结一下,以便以后面试中使用。 阅读全文
posted @ 2019-07-05 11:11 Y-X南川 阅读(85476) 评论(4) 推荐(13) 编辑
摘要: 1:思路:使用css3 flex布局优点:简单 快捷缺点:兼容不好吧,详情见:http://caniuse.com/#search=flex 先看效果 html代码 <div class='box'> <div class='box-item'> </div> </div> css代码 .box { 阅读全文
posted @ 2019-07-05 10:48 Y-X南川 阅读(988) 评论(0) 推荐(0) 编辑
摘要: Ajax请求默认的都是异步的 如果想同步 async设置为false就可以(默认是true) var html = $.ajax({ url: "some.PHP", async: false }).responseText; 或者在全局设置Ajax属性 $.ajaxSetup({ async: f 阅读全文
posted @ 2019-07-05 10:36 Y-X南川 阅读(5250) 评论(0) 推荐(0) 编辑