- 博客(9)
- 资源 (1)
- 收藏
- 关注
原创 H5 iOS传值
HTML5端需要两个方法一个触发传值,一个接收传值触发传值:接收传值:(一定要是$window服务里的方法才能接收传值) $window.getiOSString = function(str) { alert("接收的值为:" + str); }
2016-07-21 09:22:56 1282
原创 AngularJS 跨域
后台.NET WebApi AngularJS会有跨域问题,jquery 使$.post又正常请求时添加headers:app.controller("ppCtrl", function($scope, $http) { $scope.PostSchoolName = function() { var BaseUrl = "http://localhost:2996/
2016-07-19 16:43:19 631
原创 .net Model上下文类
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Data.Entity;using System.ComponentModel.DataAnnotations;using System.ComponentModel;using System.Da
2016-07-16 18:08:47 1533
原创 .net Linq 基础
public ActionResult Index() { //创建DataTable DataTable dt = new DataTable(); DataRow dr = dt.NewRow(); dt.Columns.Add("id", typeof(int));
2016-07-14 17:29:13 400
原创 ASP.NET MD5加密
public ActionResult Index() { string a = CreateMD("zrh"); ViewBag.pw = CreateMD(a); return View(); } public string CreateMD(string password)
2016-07-14 15:33:17 296
原创 .net webApi
using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.Http;using System.Web.Http;namespace MvcApi.Controllers{ public class ProductController :
2016-07-13 16:09:18 437 1
原创 .net 响应form请求
if (Request.Form["name"] != null && Request.Form["tel"] != null) { string name = Request.Form["name"]; string tel = Request.Form["tel"]; if
2016-07-12 13:01:58 607
原创 git使用
1.創建倉庫mkdir gitgerry2.初始化倉庫cd gitgerrygit init3.提交到暫存區git add app.js4.提交到分支git commit -m "註釋內容"5.查看狀態git status6.查看提交loggit log7.查持所有提交commit IDgit reflog8.丢弃工作区的修改git
2016-07-01 16:51:05 279
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人