摘要: //利用 Proxy,可以将读取属性的操作(get) var pipe = function (value){ let funStack = [] var oproxy = new Proxy({}, { get: function(pipeObject, fnName){ console.log( 阅读全文
posted @ 2021-03-02 18:52 不夜候 阅读(31) 评论(0) 推荐(0)
摘要: 使用get 拦截,实现数组读取负数的索引 // proxy 使用get拦截 实现数组读取负数的索引 function createArray(...elements){ let handle = { get: function(target, propKey, receiver){ let inde 阅读全文
posted @ 2021-03-02 18:50 不夜候 阅读(38) 评论(0) 推荐(0)
摘要: nodejs连接mysql的时候报这个错误 1 Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MyS 阅读全文
posted @ 2021-02-22 23:26 不夜候 阅读(249) 评论(0) 推荐(0)