码迷,mamicode.com
首页 >  
搜索关键字:点击    ( 62794个结果
Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.(转)
1.程序运行后异常显示:解决方案:在项目上点击右键->properties->Java Build Path,remove掉Android Dependences即可
分类:编程语言   时间:2014-06-09 00:52:35    阅读次数:247
Sublime Text快捷键
1.看了网上的Sublime Text的快捷键。没感觉,太枯燥,没图。 下面以图为例,讲解先看标题栏1.点击文件 第一个创建一个文件,快捷键(Ctrl + N)2.点击转到 使用go to anything的快捷键是(Ctrl + P) 作用用于查找文件.例子(index.html),因支持模...
分类:其他好文   时间:2014-06-09 00:08:30    阅读次数:450
jquery中的trigger()和preventDefault()方法
trigger()方法用户模拟用户操作,比较常见的一种情况就是输入框自动获得焦点:jquery 当用户打开这个界面的时候,用户名输入框就会自动得到焦点,所以用户就可以直接输入数据。preventDefault()方法用户阻止元素的默认的行为,比如说:点击超链接的跳转的行为,点击提交按钮表单...
分类:Web程序   时间:2014-06-08 18:35:30    阅读次数:256
点击事件中实现弹出一个选择框(如选择网络设置、选择电话短信联系方式)
1、网络设置 public void checkNetwork(){ //获取连接的管理对象 ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); //获取当前正在使用的网络 NetworkInfo networ...
分类:其他好文   时间:2014-06-08 16:40:31    阅读次数:217
弹出框无论如何点都做同样的事情
今天有个需求:点击某个按钮之后,弹出对话框,然后无论如何点击都做同样的事情。主要代码如下: function dialogues(){       var r =  window.confirm();       var form1 = document.getElementById("form1");       if(r) form1.action = "";       else ...
分类:其他好文   时间:2014-06-08 15:52:57    阅读次数:179
Codeforces 439D Devu and his Brother 三分
题目链接:点击打开链接 = - =以前的三分姿势不正确居然没有被卡掉,,,太逗。。 #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define M 200004 #define N ...
分类:其他好文   时间:2014-06-08 15:04:12    阅读次数:338
eclipse 使用技巧、经验 (编码、格式化模板、字体)
1、设置编码为UTF-8  在Windows-                 选择右侧框中的Text File encoding,改为utf-8 2、导入 格式化模板 windows-》preference—》java-》code style-》code template 点击import按钮 3、字体大小 Window - Preferences-》General...
分类:系统相关   时间:2014-06-08 09:43:18    阅读次数:245
poj 3268 Silver Cow Party , spfa , dijkstra
点击打开链接 两次求最短路(第二次把边反向求) 1、spfa //poj 3268 Silver Cow Party //SPFA #include #include #include using namespace std; const int M = 100000 + 100; const int N = 1000 + 100; const int inf = 1...
分类:其他好文   时间:2014-06-08 05:29:39    阅读次数:241
poj 2139 Six Degrees of Cowvin Bacon , floyd
点击打开链接 题意:给定牛的关系图,求其中一头牛与其他牛关系路程之和sum最小,然后输出 sum*100/(n-1) floyd求任意两点间的最短路程 注意: inf不能太大,因为 f[i][k] + f[k][j]  做加法时可能会溢出! #include #include const int maxn = 300 + 5; const int inf = 1<<29; int...
分类:其他好文   时间:2014-06-08 05:07:03    阅读次数:181
解决新建短信时,输入“+86”,然后输入联系人名字“1”,按删除键之后,联系人变为“1”,删除操作为达到预期结果
1.保存一个“+8618621058121”号码的联系人"Jane" 2.保存一个号码是“42266888”的联系人“1” 3.信息-新建信息-在联系人输入框中输入“+86”-输入“1”-点击删除按钮 【测试结果】联系人变为1 【预期结果】联系人应为"Jane" 与问题相关的类为Mms下的ComposeMessageActivity,相关控件为在initRecipientsE...
分类:其他好文   时间:2014-06-08 04:46:21    阅读次数:262
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!