随笔分类 - 前端
摘要:字符 - URL编码值 空格 - %20" - %22# - %23% - %25& - %26( - %28) - %29+ - %2B, - %2C/ - %2F: - %3A; - %3B< - %3C= - %3D> - %3E? - %3F@ - %40\ - %5C| - %7C URL
阅读全文
摘要:在fetch中第一个为请求地址,第二个可以设置请求类型POST,GET,DELETE,UPDATE,PATCH和PUT,随后可以使用then来接收参数,因为异步操作第一个then标明请求类型,第二个then中可以拿到正确的返回值,catch显示返回错误信息。 fetch('https://XXX',
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<div class="ship"> <div class="ship-body"></div></div> :root{ --seaColor:#54a0ff; --lineColor: #fff; --enclosureColor: #000;}body { width: 100%; heigh
阅读全文
摘要:一.发送效果 HTML <div id="send-btn"> <button> // 这里是一个svg的占位 Send </button> </div> CSS #send-btn{ display: flex; align-items: center; justify-content: cent
阅读全文
摘要:100 Continue 继续。客户端应继续其请求 101 Switching Protocols 切换协议。服务器根据客户端的请求切换协议。只能切换到更高级的协议,例如,切换到HTTP的新版本协议 200 OK 请求成功。一般用于GET与POST请求 201 Created 已创建。成功请求并创建
阅读全文
摘要:一 .css方面 二 .js方向 (1)获取当前浏览器可视宽度和高度(不是整体BODY) JQ: $(window).width() $(window).height() (2)获取整个浏览器宽度高度 JQ: $(document).width() < $('body').width() ? $(d
阅读全文
摘要:http://www.htmleaf.com/html5/html5-canvas/201901145492.html
阅读全文
摘要:web前端 live2dw小人物显示 小人预览效果 图片: 小人的目光会跟着鼠标移动~~更多功能自己去挖掘吧 哈哈哈 效果演示地址 如何显示小人 废话不多说、上源码、首先肯定是导入小人物的资源了导入的话只要导入一个js文件 <!-- 导入js资源 注意路径不要写错 --> <script src="
阅读全文

浙公网安备 33010602011771号