随笔分类 - 前端-JS
摘要:AJAX中根据async的值不同分为同步(async = false)和异步(async = true) $.ajax({ type: "post", url: "path", cache:false, async:false, dataType: ($.browser.msie) ? "text"
阅读全文
摘要:前提 其实只有 <body>、<frame>、<iframe>、<img>、<link>、<script>、<style> 这些标签才有onload事件,而div、p等标签是没有的。 但如果我们还是想在div append到DOM时做一些事情该怎么办呢?有人会说那就在append到DOM的代码后面加
阅读全文
posted @ 2020-11-13 16:47
阿鹏哥
摘要:博客园添加小女孩 转载于https://www.cnblogs.com/fyssl/p/12191565.html 1、找到设置界面 2、申请JS权限(等待审核) 3、设置脚本 1 /* 看板娘 */ 2 3 canvas#live2dcanvas { 4 border: 0 !important;
阅读全文
摘要:JS获取当前时间的年、月、日、时间等 有的方法老是记不住,这里转载记录一下。 var date = new Date(); date .getYear(); //获取当前年份(2位) date .getFullYear(); //获取完整的年份(4位) date .getMonth(); //获取当
阅读全文
摘要:网页加载顶部进度条 你是否想要一个像新浪微博那样的网页顶部加载进度条? 在你的页面加入下面代码就可以轻松实现了 <script src="http://cdn.bootcss.com/pace/1.0.2/pace.min.js"></script> <script> { function getE
阅读全文
摘要:Html知识复习之图文混排 练习练习基础 先上效果图: 废话不多说,直接贴代码: 1 <!DOCTYPE html> 2 <html lang="zh"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=u
阅读全文

浙公网安备 33010602011771号