摘要: 1.新建一个空白应用程序 里面文件结构: package.appmanifest 文件的作用是:应用程序清单。该文件列出了您的应用程序的内容,并描述其功能,如应用程序是否可以访问用户的摄像头。它还指定的页面使用的应用程序的起始页。当您使用的Visual Studio 11 Express的测试版的Windows 8更多文件添加到您的应用程序,它会自动更新您的应用程序清单 ... 阅读全文
posted @ 2012-03-29 13:19 高捍得 阅读(671) 评论(0) 推荐(0) 编辑
摘要: 字符串操作的真相: var a = "s"; a.toLocaleUpperCase(); alert(a); //s 调用 转换大写函数, 结果 a的值并没有发生变化. var a = "s"; var b = a; b = b.toLocaleUpperCase(); alert("a="+... 阅读全文
posted @ 2012-03-26 15:49 高捍得 阅读(546) 评论(0) 推荐(0) 编辑
摘要: //扩展jQuery对json字符串的转换jQuery.extend({ /** * @see 将json字符串转换为对象 * @param json字符串 * @return 返回object,array,string等对象 */evalJSON: function (strJson) {return eval("(" + strJson + ")");} });jQuery.extend({ /** * @see 将javascript数据类型转换为json字符串 * @param 待转换对象,支持object,array,string,functi 阅读全文
posted @ 2012-03-23 14:11 高捍得 阅读(946) 评论(0) 推荐(0) 编辑
摘要: 前台代码 <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <link href="jquery.jqGrid-4.3.1/css/ui.jqgrid.css" rel="stylesheet" type="text/css" /> <script src="j... 阅读全文
posted @ 2012-03-22 17:06 高捍得 阅读(1364) 评论(0) 推荐(0) 编辑
摘要: 此代码 官方网站:http://www.fyneworks.com/jquery/xml-to-json/ 不知道怎么添加附加,只好把 源代码贴出来: 自定义载入xml函数 function loadXMLDoc(dname) { try //Internet Explorer { xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); } catch (e) { try //ff, Mozilla, Opera, etc. { ... 阅读全文
posted @ 2012-03-22 14:52 高捍得 阅读(1574) 评论(0) 推荐(0) 编辑
摘要: (ff测试) 圆角+ 阴影: <style type="text/css"> div { height: 50px; width: 300px; padding: 40px; border-radius: 40px; //圆角 ... 阅读全文
posted @ 2012-03-22 11:25 高捍得 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 今天醒的比较早,闲着没事,翻来js书看看, 不料有很多意想不到的收获,和大家分享! 在函数体内获取 参数(学了这么长时间,才知道有这个东西,悲催啊,我还经常纳闷,为啥那些编好的js库里,我找不到参数的用途) <script type="text/javascript"> function a() { if (arguments.length > ... 阅读全文
posted @ 2012-03-21 08:50 高捍得 阅读(214) 评论(0) 推荐(1) 编辑
摘要: 今天 搞 这个tree弄了半天没出数据,后来又 深入研究了一下 官网给的php的例子,本来确实看不懂, 静下心来研究了一下,终于搞懂了 先看一下 成果: 下面贴代码: $("#treegrid").jqGrid({ treeGrid: true, treeGridModel: 'adjacency', ... 阅读全文
posted @ 2012-03-20 14:56 高捍得 阅读(7113) 评论(0) 推荐(0) 编辑
摘要: 查询用的类,和对象 public class student { public string name { get; set; } public int age { get; set; } public int Igrades { get; set; } public order[] oders; } ... 阅读全文
posted @ 2012-03-19 16:45 高捍得 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 说明:(图片自备, 名称为 jpg[0,2].jpg class为( one two three)对应 前面的 0,1,2) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml... 阅读全文
posted @ 2012-03-19 09:18 高捍得 阅读(290) 评论(0) 推荐(0) 编辑