随笔分类 - 前端
摘要:function uuid() { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r
阅读全文
摘要:getAttribute("name") //获取自定义属性
阅读全文
摘要:const xhr = new XMLHttpRequest(); xhr.open("POST", "/menu/list/111", false); xhr.onload = function (){ if (xhr.readyState 4 && xhr.status 200) { //xhr
阅读全文