在新的API标准中,可以通过navigator.geolocation来获取设备的当前位置,返回一个位置对象,用户可以从这个对象中得到一些经纬度的相关信息。navigator.geolocation的三个方法:1.getCurrentPosition()2.
watchPosition()3. cl...
分类:
编程语言 时间:
2014-06-13 14:24:27
阅读次数:
291
1.1Implement an algorithm to determine if a
string has all unique characters. What if you cannot use additional data
structures?字符串问题,需要先确定是不是只有ASCII码...
分类:
其他好文 时间:
2014-06-11 12:27:53
阅读次数:
247
人人网的文档写的真的和屎一样,根本就不用那么复杂1.申请 APP key 和 secret
key
网址:http://dev.renren.com/2.点击网页上的按钮,跳转到http://graph.renren.com/oauth/authorize?response_type=code&cl...
分类:
Web程序 时间:
2014-06-11 09:35:36
阅读次数:
427
表单中使用file控件进行文件的选择,使用enctype进行封装,按照2进制方式进行提交Smartuploadsmart=newsmartupload();实例化smartupload上传组件Smart.initialize(pagecontext);初始化上传操作Smart.upload();上传...
分类:
其他好文 时间:
2014-06-11 08:50:52
阅读次数:
332
1. 递归解法
/**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
cl...
分类:
其他好文 时间:
2014-06-08 16:51:59
阅读次数:
199
在vm下redhat5下安装oracle 11g后,登录sqlplus 报:
sqlplus: error while loading shared libraries: /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc:...
分类:
数据库 时间:
2014-06-07 12:00:29
阅读次数:
303
1、
添加辅助类CL_WDR_DEMO_MESSAGES环境,设计的控件有:输入控件,按钮,每个按钮对应一个事件。分别是下面,然后报消息TEXT:
SUCCESS:method ONACTIONSUCCESS .* get message managerdata lo_api_controller ...
分类:
Web程序 时间:
2014-06-07 10:42:16
阅读次数:
288
java获取用户的输入分两种,一种是字符的输入,一种是整行的输入,要用到java.io包。对于字符输入来说,使用System.in方法可以输入字符;对于整行的输入,可以使用Scanner类的方法获取整行输入。import
java.io.*;import java.util.*;public cl....
分类:
编程语言 时间:
2014-06-07 07:21:11
阅读次数:
397
由于项目的软件版本会逐渐递增,原来的测试脚本在新版本上执行的时候会出现错误1.“The
"App(1.0.1.0)-T(0.0.0." Dialog object was not found in the Object
Repository.”错误2.“Cannot identify the obj...
分类:
其他好文 时间:
2014-06-06 07:28:11
阅读次数:
227
最近需要将课设代码上传到Github上,之前只是用来fork别人的代码。这篇文章写得是windows下的使用方法。第一步:创建Github新账户第二步:新建仓库第三部:填写名称,简介(可选),勾选Initialize
this repository with a README选项,这是自动创建REA...
分类:
其他好文 时间:
2014-06-06 06:38:24
阅读次数:
427