上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: 创建数据库CREATE DATABASE DBNAME删除数据库DROPDATABASE DBNAMEØ 基本常用查询--selectselect * from student;--all 查询所有select all sex from student;--distinct 过滤重复select d... 阅读全文
posted @ 2015-07-03 14:02 天涯过者 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 一、客户端用JSONP请求数据如果你想用JSONP来获得跨域的数据,WebAPI本身是不支持javascript的callback的,它返回的JSON是这样的:{"YourSignature": "嫁人要嫁程序员,钱多话少死得早"}然而,JSONP请求期望得到这样的JSON:jQuery123456... 阅读全文
posted @ 2015-07-03 11:02 天涯过者 阅读(586) 评论(0) 推荐(0) 编辑
摘要: 一天晚上,小和尚从梦中惊醒后哭起来了。师傅看到小和尚在哭就安慰到:“怎么了,是一个很可怕的梦吗?”小和尚哭着答到:“不是!”师傅又问:“是一个很凄惨的梦吗?”小和尚摇摇头说:“不是,是一个很美好的梦。”师傅问到:“美梦?那为什么你会哭呢?”小和尚继续哭着的回答:“是因为我害怕这美好的梦不会成真。”师... 阅读全文
posted @ 2015-07-03 09:05 天涯过者 阅读(385) 评论(1) 推荐(0) 编辑
摘要: string strType = "123"; object objType= (object)strType;//可以不要,隐式转换, 要的为显式转换 string strType2 = (string)objType; //必须要,显式转换 int intType = (int)st... 阅读全文
posted @ 2015-07-02 17:52 天涯过者 阅读(1295) 评论(0) 推荐(0) 编辑
摘要: 这个也是本章重点向描述的部分,首先我们可以使用VS2012RC来新建一个MVC4.0项目,版本可以为4.0或4.5。在Global.asax文件代码中,我们发现已经把过滤器,路由器,以及对样式表和脚本捆绑(Bundles)移到了其他页面,就是在根目录下的App_Start文件夹内。代码只是简简单单的... 阅读全文
posted @ 2015-07-02 10:53 天涯过者 阅读(449) 评论(0) 推荐(0) 编辑
摘要: Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hour "m+"... 阅读全文
posted @ 2015-06-30 16:04 天涯过者 阅读(259) 评论(0) 推荐(0) 编辑
摘要: on()来改写通过.bind(), .live(), .delegate()所注册的事件/* The jQuery .bind(), .live(), and .delegate() methods are just one line pass throughs to the new jQue... 阅读全文
posted @ 2015-06-24 17:46 天涯过者 阅读(273) 评论(0) 推荐(0) 编辑
摘要: @Html.Partial("Test", Model, new ViewDataDictionary { { "a", "b" } });@ViewData["a"]//or@{ var a = ViewData["a"];} 阅读全文
posted @ 2015-06-23 09:55 天涯过者 阅读(2279) 评论(0) 推荐(1) 编辑
摘要: function removeHTMLTag(str) { str = str.replace(/]*>/g,''); //去除HTML tag str = str.replace(/[ | ]*\n/g,'\n'); //去除行尾空白 ... 阅读全文
posted @ 2015-06-15 10:31 天涯过者 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 根据 InfoType 分组排序 阅读全文
posted @ 2015-06-15 09:23 天涯过者 阅读(272) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页