Format:
Recent snippets for: x03570227
public String httpResponseAsString(InputStream is, String charset) throws IOException{ if(is==null){ return ""; } StringBuffer out=new StringBuffer(); String line ; try { BufferedReader reader=new BufferedReader(new InputStreamReader(is, charset));
142 Views
no comments
/** * JS联动菜单工具,适用于code形式的树型类别,如code:10001000 父code:1000 * 示例: * var selector=new hb.util.Selector({ * url:"/path/to/main/seletor/resources", * assistUrl:"/path/to/assist/selector/resources", * changeCallback:function(){ * alert("alert while selector change") * },
200 Views
no comments
jQuery(document).ready(function(){ jQuery(document).ajaxSend(function(e,XHR,options){ //loading提示 hb.util.Message.show({ msg:hb.util.context.msg.comm_loading, isCompleteClear:true, bar:[] });
371 Views
no comments
/** * 系统消息提示工具 * 示例: * 显示消息 * hb.util.Message.show({ * msg:"message text", * msgType:hb.util.Message.ERROR, * bar:[{text:hb.util.Message.BAR_CLOSE,handler:function(){ * hb.util.Message.clear();
156 Views
no comments
do{ if(boolean result){ //here is action deal with error break; } if(boolean result){ //here is action deal with error break; }
208 Views
no comments
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=800" /> <title>how to start html5</title> </head>
193 Views
no comments
<div id="test" >I do not tell you what hidden</div> <script> alert(test.innerHTML) </script>
281 Views
no comments
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>how to start html5</title> </head> <body>
300 Views
no comments
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.ast1949</groupId> <artifactId>ast1949-parent</artifactId> <name>ast1949-parent</name> <packaging>pom</packaging> <version>1.0.0-SNAPSHOT</version>
455 Views
no comments
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${java.source.version}</source> <target>${java.target.version}</target> <encoding>${encoding}</encoding>
177 Views
no comments
Subscribe
Discuss
News
About
New Snippet
Recent Snippets
My Snippets
Favorites
Web Code
Search