2018年4月10日

python实现跨文件全局变量的方法

摘要: 转载https://blog.csdn.net/mr0yang/article/details/51906545 在使用Python编写的应用的过程中,有时候会遇到多个文件之间传递同一个全局变量的情况。 文件1:globalvar.py 文件2:set.py 文件3:get.py 文件4:main. 阅读全文

posted @ 2018-04-10 14:16 昂扬绽放 阅读(665) 评论(0) 推荐(0) 编辑

2017年8月15日

vue项目启动说明

摘要: 1. 安装node js a.node js 包括 node 和npm2. 查看node的版本 任意路径 node -v3. 查看npm 版本 任意路径 nmp -v4. 安装cnpm 也就是淘宝镜像 命令 a.npm install -g cnpm --registry=https://regis 阅读全文

posted @ 2017-08-15 11:10 昂扬绽放 阅读(285) 评论(0) 推荐(0) 编辑

2017年7月5日

xml 解析为list dictionary

摘要: //解析为list --已测试通过 List<KeyValuePair<string, string>> lists = new List<KeyValuePair<string, string>>(); var nodes = System.Xml.Linq.XElement.Parse(sele 阅读全文

posted @ 2017-07-05 11:15 昂扬绽放 阅读(257) 评论(0) 推荐(0) 编辑

2017年4月25日

asp.net 上传文件限制

摘要: 源自 http://blog.sina.com.cn/s/blog_7ae9d7b901014fgi.html 第一种方法,主要适用于IIS6.0版本 一、修改配置Web.Config文件中的httpRuntime节点对于asp.net,默认只允许上传4M文件,增加如下配置,一般可以自定义最大文件大 阅读全文

posted @ 2017-04-25 14:01 昂扬绽放 阅读(317) 评论(0) 推荐(0) 编辑

2016年10月31日

跨线程访问控件问题

摘要: 阅读全文

posted @ 2016-10-31 23:02 昂扬绽放 阅读(105) 评论(0) 推荐(0) 编辑

委托异步

摘要: this.objMyCal = new MyCalculator(ExecuteTask) this.bojMyCal =(num, ms)=>{System.Threading.Thread.Sleep(ms); return num*num;} 阅读全文

posted @ 2016-10-31 22:17 昂扬绽放 阅读(116) 评论(0) 推荐(0) 编辑

2016年9月11日

跨域请求 JSONP 原理

摘要: js 中事先定义好回掉函数,回掉函数的参数就是跨域返回的值 后台返回调用的回掉函数 阅读全文

posted @ 2016-09-11 21:41 昂扬绽放 阅读(123) 评论(1) 推荐(0) 编辑

2016年9月9日

分页

摘要: 阅读全文

posted @ 2016-09-09 08:08 昂扬绽放 阅读(80) 评论(0) 推荐(0) 编辑

2016年9月6日

js offset

摘要: 阅读全文

posted @ 2016-09-06 21:03 昂扬绽放 阅读(111) 评论(0) 推荐(0) 编辑

2016年8月31日

js 封装获取元素的第一个元素

摘要: function getFirstElement(element) { //检测 if (element.firstElementChild) { return element.firstElementChild;//能找到就直接返回 } else { //找不到 var el = element. 阅读全文

posted @ 2016-08-31 21:27 昂扬绽放 阅读(2981) 评论(0) 推荐(0) 编辑

导航