摘要: 换行符\n的传输、保存、显示? 换行符保存在数据库中,形式为\n。再次读取时,在<textarea>中的显示为n? 分析: web服务器向API服务器请求数据,API服务器在返回数据时,会序列化成JSON格式,此时会产生一些多余的\,Web服务器会对此进行替换处理。 解决: 对于保存在数据库中的\n 阅读全文
posted @ 2016-09-02 15:18 MarlonWang 阅读(37397) 评论(0) 推荐(1) 编辑
摘要: 参考资料: https://angular-ui.github.io/bootstrap/#/getting_started 思路: (1)ng-keyup事件:每有输入,则从数据库获取匹配项,作为候选项 (2)typeahead-on-select事件:选中候选项后,从数据库获取详情 Html代码 阅读全文
posted @ 2016-07-26 14:31 MarlonWang 阅读(2660) 评论(0) 推荐(0) 编辑
摘要: CSS hack:http://www.cnblogs.com/dolphinX/p/3292630.html CSS hack技巧大全:http://www.duitang.com/static/csshack.html 阅读全文
posted @ 2016-07-25 14:30 MarlonWang 阅读(136) 评论(0) 推荐(0) 编辑
摘要: angular好用的插件集合(持续更新中):极好https://segmentfault.com/a/1190000003858219免费的Angular下载网站:http://angularscript.com/ 阅读全文
posted @ 2016-07-21 20:50 MarlonWang 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 参考资料: Github:https://github.com/nervgh/angular-file-upload 简单案例:http://nervgh.github.io/pages/angular-file-upload/examples/simple/ 带图片预览案例:http://nerv 阅读全文
posted @ 2016-07-21 14:43 MarlonWang 阅读(6181) 评论(1) 推荐(1) 编辑
摘要: toastr插件详细参考资料 项目地址:https://github.com/CodeSeven/toastr 使用方法 (1)添加引用 (2)常用使用示例 阅读全文
posted @ 2016-07-21 11:29 MarlonWang 阅读(643) 评论(0) 推荐(0) 编辑
摘要: 打开新窗体 阅读全文
posted @ 2016-07-20 16:41 MarlonWang 阅读(114) 评论(0) 推荐(0) 编辑
摘要: using Newtonsoft.Json;// using Newtonsoft.Json.Linq;// JObject oPostData = JsonConvert.DeserializeObject(strPostData); oPostData.GetValue("Channel").ToString(); 阅读全文
posted @ 2016-07-19 22:31 MarlonWang 阅读(3814) 评论(0) 推荐(0) 编辑
摘要: 插件参考:https://github.com/angular-ui/ui-select 问题: 插件的值为数组形式,可正常保存至MS SQL数据库中,但反序列化时出错。 解决方法: (1)插件的ng-model由原来的modelArticle.SeoKeywords变为modelArticle.$ 阅读全文
posted @ 2016-07-19 22:27 MarlonWang 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 公共约定 Angular jQuery 阅读全文
posted @ 2016-07-19 16:49 MarlonWang 阅读(804) 评论(0) 推荐(0) 编辑