博客格式测试
2017-08-25 23:19
447 查看
一、你好
你好啊
你是非常好你好
你好
你好
你好
你好
你好
这就是引用?
你好你好你哈
引用是啥?
粗体
斜体
粗斜
链接
百度link text
id: http://example.com/ “optional title here” 是吗
下面是代码 (感觉有点麻烦,不是自己想要的)
/** * mock模拟发送post请求 */ public String postUrl(MockMvc mockMvc, URI uri, JSONObject param, UserBean user) throws Exception{ MockHttpSession mockHttpSession = new MockHttpSession(); mockHttpSession.setAttribute("user", user); String content = mockMvc.perform(MockMvcRequestBuilders.post(uri) .contentType(MediaType.APPLICATION_JSON_UTF8) // 设置request的content-type为application/json;charset=UTF-8 .content(param.toString()) .accept(MediaType.APPLICATION_JSON_UTF8) // 设置respose的content-type为application/json;charset=UTF-8 .session(mockHttpSession) // session保存用户的相关信息 .requestAttr("OctoPrivilege",user.OctoPrivilege)) // 保存用户权限码 .andDo(MockMvcResultHandlers.print()) // .andExpect(MockMvcResultMatchers.status().isOk()) //TODO 返回码201 why? .andReturn().getResponse().getContentAsString(); return content; } <php> echo “hello world"; </php>
下面是java代码
java hello
下面代码高亮
require 'redcarpet' markdown = Redcarpet.new("Hello World!") puts markdown.to_html
Use the
printf()function.
是不是说这就是自己想要的效果了嘞
public boolean containsId(String content, int approvalId){ JSONObject result = JSON.parseObject(content); JSONArray jsonArray = result.getJSONArray("data"); boolean flag = false; for(int i = 0; i<jsonArray.size(); i++){ JSONObject json = jsonArray.getJSONObject(i); JSONObject form = json.getJSONObject("form"); int approvalIdNo = form.getIntValue("id"); if(approvalId == approvalIdNo){ flag = true; break; } } return flag; }
uml图
Created with Raphaël 2.1.0开始我的操作确认?结束yesno
数学公式
Γ(n)=(n−1)!∀n∈N相关文章推荐
- 测试博客代码格式
- 测试Windows Live Writer编写博客,主要是代码格式
- 测试博客编辑格式
- 博客格式测试
- 发表项目博客的格式要求
- 测试一下能不能发博客
- 在CSDN博客里保持代码格式的方法
- Redis Primer(1)基于JedisPool的Redis hset并发性能测试 - @钟超 · 技术博客专栏 - 博客频道 - CSDN.NET
- 测试一下csdn上的博客怎么样
- 无需编程,一步步教你把xls格式测试用例转为xml,方便TestLink导入
- 在博客中如何让code具有比较易读的格式
- “我的案例”范例及格式『51CTO博客出书活动』
- 第一篇博客测试
- 博客测试
- string c_str 使用问题 | 一淘测试博客
- 刚刚开通博客功能,测试博客功能
- 敏感词测试 检查单 2015-12-31-01 这个博客不能用了。
- 美博客测试三大地图服务 谷歌获胜微软完全失败
- 测试一下51CTO的博客系统
- 测试OFFICE 2010发布博客