摘要: 数据类型分为三类:基本数据类型,对象类型,id类型。基本数据类型:int ,float double char对象类型:类,指针对象,协议id类型:可以表示对象类型(在表示对象类型的时候 不需要加星号),不可以表示基本数据类型。格式化输出: int :%i 表示整数,%o表示 八进制,%#x表示十... 阅读全文
posted @ 2014-12-10 22:20 Follow-your-heart 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 首先建立一个包名为package com.JiajiaCy.CallActivity;package com.JajaCy.CallActivity;import org.apache.cordova.CallbackContext;import org.apache.cordova.Cordova... 阅读全文
posted @ 2014-12-08 14:21 Follow-your-heart 阅读(918) 评论(0) 推荐(0) 编辑
摘要: 在Default.aspx里面,我们会透过javascript建立两个物件,分别有Name和Age的属性,再透过Array的方式,将这两个物件塞到Array里面去。使用Ajax内建的$.ajax API,我们可以把url,type,data,sucess等几个属性先设定好,其中要注意到当我们想透过j... 阅读全文
posted @ 2014-05-22 17:30 Follow-your-heart 阅读(1256) 评论(1) 推荐(2) 编辑
摘要: 阅读全文
posted @ 2014-04-16 16:45 Follow-your-heart 阅读(155) 评论(1) 推荐(1) 编辑
摘要: 三原色分别为:红(Red)、绿(Green)、蓝(Blue).颜色值=(Red)+(Green*256)+(Blue*256*256)//由三原色值合成颜色整数值function ColorFromRGB(red, green, blue){ return red + green*256 + blue*256*256;} 阅读全文
posted @ 2014-01-24 11:18 Follow-your-heart 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: 最近遇到个奇怪的问题,就是关于js参数中待换行符时,出现了错误“为结束的字符串常量”。解决方法是:不直接将该数据以参数形式传递,而是先将其赋值在一个隐藏的文本内,需要调用的函数里只需读取该文本里的内容即可。下边是代码: "/> 阅读全文
posted @ 2013-11-07 13:46 Follow-your-heart 阅读(461) 评论(0) 推荐(1) 编辑
摘要: 把你目前查到结果集定义为一个临时表 tempTable下面是如何查 SELECT * FROM tempTable where 关键字=‘’举例select book_num,book_name,book_type from(select * from bookinfo ) as temptable where book_num=2 阅读全文
posted @ 2013-08-21 10:37 Follow-your-heart 阅读(948) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Configuration; 4 using System.Web.Configuration; 5 using System.Text; 6 using System.IO; 7 8 /// 9 /// SystemConfig 的摘要说明 10 /// 11 public static class SystemConfig12 {13 private static Configuration ConfigFile;14 pr... 阅读全文
posted @ 2013-07-11 10:57 Follow-your-heart 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 创建插件<script src="../CreateControl.js" type="text/javascript"></script> <script type="text/javascript"> function window_onload() { ReportViewer.Report.ShowProgressUI = true; ReportViewer.Start(); } </script> 在<body>中进行加载<body style=" 阅读全文
posted @ 2013-06-20 15:21 Follow-your-heart 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 由于项目需要所以找了一些资料,可以在移动设备上使用jQuery UI,但是由于目前触摸设备不支持jQuery UI类库,因为触摸事件是touchstart,touchmove和touched,而不是mouseover、mousemove和mouseout。为了解决这个问题,我们可以用jQuery UI Touch Punch类库,它通过模拟事件来将鼠标事件匹配touch事件,而且使用起来很方便。支持的设备有以下几种噢:iPad、iPhone、Android、其它基于触摸的移动设备。接下来就是怎么使用类库:引入jQuery,jQueryUI和 jQuery UI Touch Punch类库:1 阅读全文
posted @ 2013-05-29 16:20 Follow-your-heart 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 之前不知道如何解决现在知道了给大家分享一下心得:首先添加<asp:CheckBoxField>的一列它绑定数据源DataField的数据库中的值得类型必须为bit(返回类型为Bool类型),这样就可以达到我想要的效果了。 阅读全文
posted @ 2013-04-26 14:03 Follow-your-heart 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 1.获取版本号 需要添加 插件 2. 使用ajax进行获取服务中最新的安装包的详细信息 3.比较版本号是否一致,如果不一致,将会提示是否进行“更新” 4.如果选择"更新",对执行安装包的下载 5.将打开下载后的安装包 Android 平台下打开安装包文件的方式与iOS的方式不一样 Android使用 阅读全文
posted @ 2016-05-16 14:30 Follow-your-heart 阅读(7854) 评论(0) 推荐(2) 编辑
摘要: 使用Cordova 进行跨平台应用程序的开发 1.创建Cordova项目 2.添加插件 2.1切换到Plugins目录 2.2 添加一下插件 3.修改插件 3.1需要修改Android项目的插件: 3.1.1修改cordova-plugin-file-transfer 下边的 FileTransfe 阅读全文
posted @ 2016-05-16 13:56 Follow-your-heart 阅读(4812) 评论(0) 推荐(0) 编辑
摘要: The resource could not be loaded because the App Transport Security policy reguir 原因:iOS9引入了新特性App Transport Security (ATS); 新特性要求App内访问的网络必须使用HTTP... 阅读全文
posted @ 2015-10-29 11:30 Follow-your-heart 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1.点击查看ashx在浏览器中显示的信息2.自定义协议头这样问题就搞定了。当然只是我遇到的一种。 阅读全文
posted @ 2015-08-27 11:38 Follow-your-heart 阅读(342) 评论(0) 推荐(0) 编辑
摘要: iOS7默认状态栏文字颜色为黑色 修改为白色的方法:(chenyong注意 我的Status bar style 使用的仍是默认值Gray style(default))1在Info.plist中设置View controller-based status bar appearance 为NO2 在... 阅读全文
posted @ 2015-03-31 12:09 Follow-your-heart 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 刚开始用Xcode是不是发现以前熟悉的开发环境的快捷键都不能用了?怎么快捷运行,停止,编辑等等、都不一样了。快速的掌握这些快捷键,能提供开发的效率。其实快捷键在Xcode的工具栏里都标注有,只是有的符号和你的键盘上的符号对应不起来罢了。下面截图工具栏里的快捷键总结一下常用快捷键的用法。一、关于运行调... 阅读全文
posted @ 2015-03-18 09:45 Follow-your-heart 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Sencha Touch 2.3.2和2.4.0在安卓2.3上面用会报错,具体报错信息如下:解决办法是:打开文件:你的file:///android_asset/www/sencha-touch-all-debug.js找到第76728行:if (Ext.feature.has.Touch) { ... 阅读全文
posted @ 2015-03-07 14:23 Follow-your-heart 阅读(297) 评论(0) 推荐(0) 编辑
摘要: document.addEventListener("事件名称", 函数, false);function 函数名(event){ // 方法执行 } addEventListener里最后一个参数决定该事件的响应顺序;如果为true事件执行顺序为 addEventListener ---- 标签的... 阅读全文
posted @ 2015-03-02 11:18 Follow-your-heart 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 设置aspx页面的地址栏中的Session ID的显示与隐藏修改web.config文件中的sessionState节点下的cookieless的值 1.cookieless的值是false的时候隐藏 2.cookieless的值是true的时候显示 这样就可以达到我们想要的效... 阅读全文
posted @ 2015-01-26 17:27 Follow-your-heart 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 在类中使用getSystemService的时候需要这样进行使用:1.public class JajaMenu extends Activity { public static JajaMenu instance; @Override public void onCrea... 阅读全文
posted @ 2015-01-19 15:21 Follow-your-heart 阅读(218) 评论(0) 推荐(1) 编辑