mvcwebapi3层分布式框架开发内容摘要:

UT39。 , • data: jsonOrder, • success: function (data) { • alert(data)。 • } • })。 • } 如何调试 (1)。 • Fiddler*****5star 如何调试 (2) FireBug for Firefox • 查看 HTML,CSS,Javascript等 • 监控下载图片资源时间线 • 完善友好的调试 如何调试 (3)? Firefox的 RestClient插件 —Rest Client 测试插件 sertwith?type=insertwith“ [HttpPost] public HttpResponseMessage InsertWith(Order entity, string type) Delete– 利用 RestClient [HttpDelete] public HttpResponseMessage Delete(string id) Web异常错误代码 • 100199 – Informational • 200299 – Client request successful • 300399 – Client request redirected, further action necessary • 400499 – Client request inplete • 500599 – Server error Javascript • Namespace (命名空间 ) –默认为全局范围,有潜在类型冲突隐患 • Self Executing Fuction (自执行匿名函数 ) • Object and Array (对象和数组初始化 ) –不要使用 new 关键字 • Null Or Empty (检查 NULL) Javascript自执行匿名函数 (1) • //SelfExecuting Anonymous Func: Part 2 (Public amp。 Private) • (function( skillet, $, undefined ) { • //Private Property • var isHot = true。 • • //Public Property • = Bacon Strips。 • • //Public Method • = function() { • var oliveOil。 • • addItem( \t\n Butter \n\t )。 • addItem( oliveOil )。 • ( Frying + )。 • }。 • • //Private Method • function addItem( item ) { • if ( item !== undefined ) { • ( Adding + $.trim(item) )。 • } • } • }( = || {}, jQuery ))。 • Javascript自执行匿名函数 (2) 外部调用方式示例 • //Public Properties • ( )。 //Bacon Strips • • //Public Methods • ()。 //Adding Butter amp。 Frayi。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。