本文共 800 字,大约阅读时间需要 2 分钟。
后台
C# 和网络部分
MVC 模型-视图模式( ViewBag/ViewData/@Model./ViewModel );返回视图或重定向(return Redirect("/Ctrl/View");)
Newtonsoft.Json - 序列化对象:将 JSON 转字符串;反序列化:将字符串转 JSON。
WebService、WebApi、asmx、aspx、ADO.NET;LINQ 到 Entity/SQL。
ArrayList、Array、List 三者之间的转换方式。
TempData 和 Session:数据存储过程;使用 string.IsNullOrEmpty 判断是否为空;URL 参数(?a=b&c=d)
正确的日志记录方式:通过 Web.config 和 ConfigurationManager。
[HttpPost] [XmlType(TypeName = "XML参数头")] [Serializable] WebServiceXML。
CustomOAuth 2.0:证书路径配置。
内网映射接口:IIS 网站发布配置(端口、防火墙、应用程序池、权限)、域名转移、多层子网、本地配置多个网站。
页面
Angular.js:$scope、$watch、$apply、$http;页面路由。
jQuery:$.ajax({}) 和 localStorage。
F12 开发者工具:console.log、断点、Elements 查找元素、Network 检查请求。
常见问题
样式加载到一个不存在的元素(angular.js 未绑定)或 h5.text 导致的绑定失败;模型没有动态刷新($apply)
微信
微信支付开发文档:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_7&index=6。
转载地址:http://mptfk.baihongyu.com/