随笔分类 - Javascript/CSS/大前端
摘要:https://medium.com/javascript scene/master the javascript interview what is a pure function d1c076bec976 The Trouble with Shared State Several years a
阅读全文
摘要:``` function eq (y) { return function forX(x) { return x === y } } function mod (y) { return function forX (x) { return x % y } } function compose (fn
阅读全文
摘要:``` const HttpRequest = function() { this.query = '' } function HttpResponse() { this.body = [] this.status = 0; } HttpResponse.prototype.write = function(block) { this.body.push(block) } H...
阅读全文
摘要:``` const compose = (...fns) = { let len = fns.length; let fn_index = len 1; let fn_result; function invoke(...args) { fn_result = len ? fns[fn_index]
阅读全文
摘要:``` curry ```
阅读全文
摘要:参考 " JWT(JSON WEB TOKENS) 一种无状态的认证机制" "基于Token的WEB后台认证机制" "各种语言版本的基于HMAC SHA256的base64加密" Java与.Net实现实现 结果: eyJ0eXBlIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJ
阅读全文
摘要:1. 定义根state:ajaxIsLoading2. 在Axios拦截器中commit不同的状态实现状态切换3. 组件中通过getter获取ajaxIsLoading状态 Axios 拦截器配置 Vuex Loading.vue
阅读全文
摘要:https://code.angularjs.org/
阅读全文
摘要:ZeroClipboard.config({ swfPath: "/scripts/ZeroClipboard.swf" });var client = new ZeroClipboard();client.setText(getLogs());client.clip(document.getEle...
阅读全文
摘要:(function() { var define, requireModule, require, requirejs; (function() { var registry = {}, seen = {}; define = function(...
阅读全文
摘要:Upload on form submit or button click Single Image with validations Select Multiple files Select Drop files: Drop submitUpload right away after ...
阅读全文
摘要:Sublime SASS语法高亮插件下载地址:https://github.com/kuroir/SCSS.tmbundle/zipball/SublimeText2koala_2.0.4_setup.exe 下载地址:http://pan.baidu.com/s/1o6ktn5o测试代码(参考阮一...
阅读全文
摘要:例如IIS下,可以打开IIS窗口——〉选择一个网站——〉属性——〉http头,增加一个http头然后输入头名:P3P输入头内容:CP=CAO PSA OUR点评:与上一个方法类似,此方法也要求第三方在可控可管理。
阅读全文
摘要:看了张子阳同学的自反+递归 实现评论的无限引用,自已来个xslt版。各位见笑了!为人方便起见,评论数据直接保存在XML中.Comments XML DatasCode highlighting produced by Actipro CodeHighlighter (freeware)http://...
阅读全文