摘要:
Math.round(1.5) // 2 Math.round(-1.5) // -1 往大的取, 1 和 2 比较2大,所以Math.round(1.5) 的结果为 2; -2 和 -1 比较-1大,所以Math.round(-1.5) 的结果为 -1; 阅读全文
摘要:
原文链接:https://www.cnblogs.com/zxmbest1/p/5390694.html 阅读全文
摘要:
一、分析 跨越是浏览器对XMLHttpRequest(XHR)请求方式的限制。XHR讲解请参考: https://developer.mozilla.org/zh-CN/docs/Web/API/XMLHttpRequest 二、解决思路 1.浏览器方:禁止浏览器检查[启动浏览器时,设置参数 --d 阅读全文
摘要:
path模块是node.js中处理路径的核心模块。可以很方便的处理关于文件路径的问题。 const path = require('path') // 拼接路径 function resolve(dir) { return path.join(__dirname, dir) } module.exp 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>text-shad 阅读全文
摘要:
阅读全文
摘要:
# 1. 电商管理后台 API 接口文档 ## 1.1. API V1 接口说明 - 接口基准地址:`http://127.0.0.1:8888/api/private/v1/` - 服务端已开启 CORS 跨域支持 - API V1 认证统一使用 Token 认证 - 需要授权的 API ,必须在 阅读全文