摘要: import shelve a = shelve.open('1') b = [1,2,3] a['b'] = b a.close()a['b'] Traceback (most recent call last):File "C:\Users\Administrator\AppData\Local 阅读全文
posted @ 2020-06-30 16:57 Mdreame 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 1.6 新版本的AngularJs中用then和catch 代替了success和error,用PRomise规则。更改写法: 阅读全文
posted @ 2017-03-01 21:16 Mdreame 阅读(3908) 评论(0) 推荐(0) 编辑
摘要: 如以下代码: 这样会出现Bug,即先弹窗,再隐藏。 改成这样: 2. 回调函数由两个参数:被选元素列表中当前元素的下标,以及原始(旧的)值。然后以函数新值返回您希望使用的字符串。 阅读全文
posted @ 2017-02-28 22:16 Mdreame 阅读(1342) 评论(0) 推荐(0) 编辑
摘要: 1.use uuid module instead 那就安装吧,npm install -g uuid 2.直接npm install -g gitbook 快速入门:http://blog.csdn.net/wsyw126/article/details/51733577 http://blog. 阅读全文
posted @ 2017-02-27 10:38 Mdreame 阅读(1350) 评论(0) 推荐(0) 编辑
摘要: 使用github出了些问题?fatal: unable to access;Failed connect to github.com:8087; No error 阅读全文
posted @ 2017-02-26 15:22 Mdreame 阅读(804) 评论(0) 推荐(0) 编辑
摘要: 浏览器中的跨域资源请求 2015-09-03 web, security 浏览器中的跨域资源请求 2015-09-03 web, security 同源策略-是针对浏览器所设计的一项安全规定,页面中所渲染的资源(JavaScript脚本除外)都需要符合同源策略才能够正常访问。 在构建 Web 项目或 阅读全文
posted @ 2017-02-21 11:07 Mdreame 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1.sublime 打开sublime>tools>Developer>new snippet 建议新建一个文件夹保存自定义代码块 2.Webstorm 选中代码块,tools>save as live template abbreviation:定义用什么触发 Template text:代码块 阅读全文
posted @ 2017-02-20 13:21 Mdreame 阅读(2068) 评论(0) 推荐(0) 编辑
摘要: 我们通过两个流程来看一下它们之间的区别。 Redirect 1. 用户浏览器向 http://localhost:8080/demo/start.xhtml 发送 GET 请求。 2. JSF收到请求,返回 start.xhtml 页面。 3. 用户点击页面中的按钮。 4. JSF收到请求,向浏览器 阅读全文
posted @ 2017-02-12 14:31 Mdreame 阅读(4169) 评论(0) 推荐(0) 编辑
摘要: 微信小程序问题汇总 阅读全文
posted @ 2017-02-10 21:54 Mdreame 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 路由器IP带宽控制 阅读全文
posted @ 2017-01-24 15:01 Mdreame 阅读(911) 评论(0) 推荐(0) 编辑