上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: http 阅读全文
posted @ 2014-10-09 19:18 ทดสอบ 阅读(146) 评论(0) 推荐(0)
摘要: 1.先添加插件cordova plugin add org.apache.cordova.filecordova plugin add org.apache.cordova.file-transfer 2. 在index.html 中添加 3.在index.js中添加document.addE... 阅读全文
posted @ 2014-10-09 19:17 ทดสอบ 阅读(851) 评论(0) 推荐(0)
摘要: 二維碼掃描 最近有一個項目用到了 二維碼的掃描 總結一下 記錄一下1.1 ionic start barcodescanner blank 2 cd barcodescanner 3 ionic platform add android 4 ionic platform add ios2. 添加插件... 阅读全文
posted @ 2014-10-09 19:12 ทดสอบ 阅读(1394) 评论(0) 推荐(0)
摘要: 拍照是經常用到的,所以記錄一下 拍照的代碼...1.ionic start camera blankcd cameraionic platform add ios2. 添加插件,這裏很熟悉....1 cordova plugin add org.apache.cordova.camera3. 可以從... 阅读全文
posted @ 2014-10-09 19:03 ทดสอบ 阅读(885) 评论(0) 推荐(0)
摘要: 用插件打开PDF的一个超连接但是谷歌了很久 ,发现了一个很好的方法就是借google 来打开一个PDF ,而不下载PDF;1 _yourID.setAttribute('onclick',"window.open('https://docs.google.com/gview?embedded=tru... 阅读全文
posted @ 2014-10-09 15:08 ทดสอบ 阅读(310) 评论(0) 推荐(0)
摘要: 1 var http = require('http'); 2 var fs = require('fs'); 3 var server = http.createServer(function(req, res) { 4 if (req.url !== "/favicon.ico... 阅读全文
posted @ 2014-09-25 23:26 ทดสอบ 阅读(233) 评论(0) 推荐(0)
摘要: 转载于作者:海底苍鹰地址:http://blog.51yip.com/jsjquery/1599.html我希望页面加载的时候,我能马上处理页面的数据,如请求API ....所以这样设置 在某个页面的控制器中 监听页面loadphonecatControllers.controller('regis... 阅读全文
posted @ 2014-09-22 17:05 ทดสอบ 阅读(623) 评论(0) 推荐(0)
摘要: 转载于作者:海底苍鹰地址:http://blog.51yip.com/jsjquery/1602.html1.在app.js 中声明了模块的依赖1 var phonecatApp = angular.module('phonecatApp', [2 'ngRoute',3 'phonecatCont... 阅读全文
posted @ 2014-09-22 14:45 ทดสอบ 阅读(423) 评论(0) 推荐(0)
摘要: 有时候需要 调试,这是就需要alert 的...可惜的是我不会angular 所以记录一下.controller('mainctr', function($scope, $window) { $window.alert('xxxxx');})只需要 $window 就可以了;跳转页面的时候,$st... 阅读全文
posted @ 2014-09-19 18:19 ทดสอบ 阅读(739) 评论(0) 推荐(0)
摘要: 要用cordova plugin 的话还是需要设置一下的1. 下载 ng-cordova.jsdownload the zip file here2. 在index.html 中引用 (cordova.js 之前引进)如下: 3.在你的angular.module 声明 如下angul... 阅读全文
posted @ 2014-09-19 14:39 ทดสอบ 阅读(1070) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页