摘要: gulp:基于nodejs的前端自动化构建工具。 参考文章:http://www.gulpjs.com.cn/ web页面在构建时往往需要引入多个公用js、第三方插件、依赖等,本文讲述利用gulp构建合并js文件。 构建前,需要引用多个依赖: 构建后,只需要引用构建js: 同时gulp的watch功 阅读全文
posted @ 2017-04-26 10:29 酱油帝君 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 今天早上打包android的时候突然报上图错误,原因是我在新增的第三方组建中包含几个中文名文件(说明文档更新之日之类的)导致的,删除后即可正常build 阅读全文
posted @ 2017-02-28 11:10 酱油帝君 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 1 function Common() { }; 2 Common.prototype = function () { 3 //基于layer的框架(loading和alert部分是使用的layer弹层) 4 return { 5 alert: function (msg) { 6 layer.msg(msg, { ... 阅读全文
posted @ 2017-01-10 11:13 酱油帝君 阅读(1537) 评论(0) 推荐(0) 编辑
摘要: H5原生js文件上传,带进度。 js代码: C#部分 C#配置cors允许请求头(通过webconfig配置),尝试过写入global的方式get可以,post不行(进不了global部分代码),未找到解决方案 阅读全文
posted @ 2016-12-15 18:25 酱油帝君 阅读(2211) 评论(0) 推荐(0) 编辑
摘要: 1 var modelPage={//分页控件 2 //调用示例 3 codeExp: function () { 4 modelPage.initPage({ 5 pagerowcount: 215,//数据总共多少条 6 pageindex: 1,//当前第几页 7 pagesize:10,// 阅读全文
posted @ 2016-11-21 10:56 酱油帝君 阅读(153) 评论(0) 推荐(1) 编辑
摘要: 配置文件加入下图所示节点,重启mongodb服务即可(:号后注意要有空格) 1. 配置user 用户操作传送门: https://docs.mongodb.com/manual/reference/method/js-user-management/ 角色操作传送门 https://docs.mon 阅读全文
posted @ 2016-09-19 15:49 酱油帝君 阅读(2224) 评论(0) 推荐(0) 编辑
摘要: 1.安装mongodb 下载地址:https://www.mongodb.com/download-center#community 文档地址:https://docs.mongodb.com/manual/administration/install-community/ 具体安装不赘述,没有什么 阅读全文
posted @ 2016-09-19 15:47 酱油帝君 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 一.驱动下载 1.1 两种 网站下载 http://mongodb.github.io/mongo-csharp-driver/?_ga=1.120058816.975053224.1463466623 VS NuGet安装 三个dll 二.日常操作 2.1 操作文档传送门: https://doc 阅读全文
posted @ 2016-09-19 15:46 酱油帝君 阅读(191) 评论(0) 推荐(0) 编辑
摘要: public class MongoHelper { private static IMongoDatabase GetDb(string constr, string dbName) { var db = new MongoClient(constr).GetDatabase(dbName); return... 阅读全文
posted @ 2016-09-19 15:43 酱油帝君 阅读(412) 评论(0) 推荐(0) 编辑
摘要: public class single { private single() { } private static single i_f; public static single instance//保证只有一个实例 { ... 阅读全文
posted @ 2014-11-03 17:10 酱油帝君 阅读(115) 评论(0) 推荐(0) 编辑