自定cordova插件笔记demo

摘要: 1.在项目根目录下(我的是com.chl),添加一个文件夹,在文件夹里添加src、www两个子文件夹和plugin.xml文件。在www目录下,创建test.js。在src文件夹下添加android子目录(--为了区分平台,android/ios...--),在android目录下添加chl文件夹( 阅读全文
posted @ 2016-09-09 16:41 DevilSatan 阅读(280) 评论(0) 推荐(0)

使用cordova插件barcodescanner遇到的坑

摘要: 最近接手了一个app任务,由于不懂android和ios,只想简单点写代码,所以,最终采用了基于H5的web框架:ionic + cordova(也叫phonegap)来开发。app的设计中有一个扫描二维码的功能,各种搜索之后,找到了一个cordova的插件,就是barcodescanner啦。代码 阅读全文
posted @ 2016-03-31 14:13 DevilSatan 阅读(7427) 评论(2) 推荐(1)

ionic tab导航在android 真机测试中 导航在顶部解决办法

摘要: 1.打开app.js文件 2.找到.config(function($stateProvider, $urlRouterProvider)){ $stateProvider ... ... } 3.加入红色部分代码.config(function($stateProvider, $urlRouter 阅读全文
posted @ 2016-02-25 11:24 DevilSatan 阅读(709) 评论(0) 推荐(0)

mysql优化

摘要: 1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,Sql 代码 : select id from t where num is nul... 阅读全文
posted @ 2015-10-10 13:55 DevilSatan 阅读(168) 评论(0) 推荐(0)

spring访问静态资源出错,No mapping found for HTTP request with URI xxx/resources/js/jquery.min.js...

摘要: 问题:spring访问静态资源出错,No mapping found for HTTP request with URI xxx/resources/js/jquery.min.js...web.xml下对spring的DispatcherServlet请求url映射的配置,原配置如下: sprin... 阅读全文
posted @ 2015-07-27 14:21 DevilSatan 阅读(1666) 评论(1) 推荐(0)