Loading

随笔分类 -  Coding

上一页 1 2 3 4 5 6 ··· 10 下一页
摘要:之前分享了个代码,后来发现中文发送是乱码,应该是加密代码的问题,然后在又找到这个可完美使用的Py3微信库wechatpy:https://github.com/jxtech/wechatpy 阅读全文
posted @ 2018-03-06 17:43 _朝晖 阅读(436) 评论(0) 推荐(0)
摘要:不说废话了,直接上py3 django代码: 阅读全文
posted @ 2018-03-04 12:05 _朝晖 阅读(386) 评论(0) 推荐(0)
摘要:https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Sending_forms_through_JavaScript As in the previous article, HTML forms can send an HTTP req 阅读全文
posted @ 2017-11-08 19:00 _朝晖 阅读(238) 评论(0) 推荐(0)
摘要:从sof上找到一个example:https://stackoverflow.com/questions/46206643/asp-net-core-2-0-and-angular-4-3-file-upload-with-progress,不但上传文件,而且支持多文件: 模板代码: 组件代码: 单 阅读全文
posted @ 2017-11-08 10:15 _朝晖 阅读(1347) 评论(0) 推荐(0)
摘要:https://blog.angular.io/version-5-0-0-of-angular-now-available-37e414935ced Version 5.0.0 of Angular Now Available We are pleased to announce version 阅读全文
posted @ 2017-11-06 16:07 _朝晖 阅读(420) 评论(0) 推荐(0)
摘要:1、Ueditor的集成主要通过把UEditor做成一个Component来实现,先上Component代码: 简单解释一下,这个代码干了啥,用DomSanitizer这个组件把本来模板中不合法的Script标签合法化,而且只能通过属性绑定的赋值,才能让模板把它渲染出来。Ng的模板自带XSS过滤,像 阅读全文
posted @ 2017-11-03 15:13 _朝晖 阅读(2630) 评论(0) 推荐(0)
摘要:集成步骤: 1、安装jquery极其扩展插件库ts定义文件 2、页面加载jquery和扩展插件: 3、把扩展插件module加入到tsconfig.app.json的types配置。 4、调用扩展插件的方法: 5、运行ng serve: 这个里面有个问题,就是我们不是直接去尝试调用jquery pl 阅读全文
posted @ 2017-11-02 18:34 _朝晖 阅读(2574) 评论(0) 推荐(0)
摘要:https://stackoverflow.com/questions/38158318/is-it-possible-to-use-echarts-baidu-with-angular-2-and-typescript code 阅读全文
posted @ 2017-10-23 21:24 _朝晖 阅读(1273) 评论(0) 推荐(0)
摘要:主要问题就是最后一个HTTP Demo需要angular-in-memory-web-api模块: 这个时候如果用 有可能出不来结果,出现状况是,component从service的相关接口取不到数据,最后看了官方代码,猜测有可能是这个模块的版本问题,于是乎改了package.json: 运行恢复正 阅读全文
posted @ 2017-10-22 14:54 _朝晖 阅读(248) 评论(0) 推荐(0)
摘要:https://www.tuicool.com/articles/mauiMzY One of the first things you'll usually do in a project is to bring in Sass to make working with CSS easier. W 阅读全文
posted @ 2017-10-20 12:49 _朝晖 阅读(776) 评论(0) 推荐(0)
摘要:原文地址:https://vsavkin.com/writing-angular-2-in-typescript-1fa77c78d8e8 本文转自:http://www.chinacion.cn/article/286.html Angular是用TypeScript编写的。在这篇文章中,我将讨论 阅读全文
posted @ 2017-10-19 15:31 _朝晖 阅读(1217) 评论(0) 推荐(0)
摘要:从今有个ng1 spa项目,项目可能会有ng1的版本升级问题,特简要摘录从1.3的主要版本变更,所以内容来自migration guide。 1.3的主要变更: 1、controller不能再以全局简单函数那样写了,必须按照Controller的标准写法写了 2、ng表达式里面不能再调用.bind, 阅读全文
posted @ 2017-10-18 22:07 _朝晖 阅读(357) 评论(0) 推荐(0)
摘要:https://engineering.velocityapp.com/webpack-vs-browersify-vs-systemjs-for-spas-95b349a41fa0 Right now, there are at least 8 powerful open source Javas 阅读全文
posted @ 2017-10-09 19:28 _朝晖 阅读(534) 评论(0) 推荐(0)
摘要:http://angularfirst.com/systemjs-to-webpack-before-you-begin/ This is a primer discussing why to move from SystemJS to webpack in your Angular project 阅读全文
posted @ 2017-10-09 19:27 _朝晖 阅读(598) 评论(0) 推荐(0)
摘要:最前面就是大家都知道的这个版本开始只支持py3.4+,而且下一个大版本就不支持3.4,再就是建议所有插件开始放弃1.11 1、最惊艳的变化,就是URL配置正则表达式的简化,旧的: 简化后的: 2、Admin对移动端的友好 3、SQL查询对Windows表达式的支持,就是SQL里面的over从句,这个 阅读全文
posted @ 2017-10-01 13:26 _朝晖 阅读(249) 评论(0) 推荐(0)
摘要:这两天干了一个几斤疯狂的事情,花不到一个工作日的时间把一个线上Django项目语言版本从python2升级到Python31、字典的一个语法变化 Python2.7: Python3: 2、u"strcontent"这种格式在python3里面支持,但是定义正则的ur"regexcontent"已经 阅读全文
posted @ 2017-09-28 12:52 _朝晖 阅读(1504) 评论(0) 推荐(0)
摘要:先用文档中的样例: Models定义: 关系序列化定义: 这个关系序列化有效的前提是必须在model定义中加 这个设置项,否则tracks在虚拟化结果中会找不到或者报错。 阅读全文
posted @ 2017-08-31 10:29 _朝晖 阅读(767) 评论(0) 推荐(0)
摘要:跟后台关系不大,主要是前端js实现,具体使用了XMLHttpRequest的ProgressEvent事件,可以参考MDN中的Using XMLHttpRequest https://developer.mozilla.org/cn/docs/Web/API/XMLHttpRequest/Using 阅读全文
posted @ 2017-08-23 13:57 _朝晖 阅读(1932) 评论(0) 推荐(0)
摘要:iOS App里面所有的View构成一个组件树,这个树里面如果有了闭环就会出现这个报错,最常见的你不小在某UIViewController里面写了这样的代码: 因为ViewController默认有一个view作为VC的全局父view,你这样代码就会导致整个view树出现指向闭环。于是出现了 a p 阅读全文
posted @ 2017-08-09 09:35 _朝晖 阅读(1969) 评论(0) 推荐(0)
摘要:Storyboard作为iOS主推的UI开发方式,不管接受也好,不接受也好,在未来几年,都会逐渐在产业界流行,之前bignerd在其ios开发第四版中,作者曾经说过一节的Storyboard优缺点分析,并被国内很多人所免费借用,时至今日,到第六版的时候,storyboard已经是bignerd已经国 阅读全文
posted @ 2017-07-07 11:06 _朝晖 阅读(296) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 10 下一页