上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 25 下一页
摘要: 介绍 RequestDispatcher是请求转发类,用于转发请求到另一个servlet处理 方法 void forwrd(HttpServletRequest request , HttpServletResponse response ) 参数: HttpServletRequest reque 阅读全文
posted @ 2021-09-19 12:08 remix_alone 阅读(94) 评论(0) 推荐(0)
摘要: 介绍 HttpServletResponse响应对象,定义响应行、响应头、响应体、重定向等方法 方法 void setStatus(int status) 参数: int status:设置Http请求的请求行 返回值:无 返回值意义:无 作用:设置Http请求的请求行 void setHeader 阅读全文
posted @ 2021-09-19 10:39 remix_alone 阅读(91) 评论(0) 推荐(0)
摘要: 介绍 HttpServletRequest定义了获取请求行、请求头、请求体的方法,作为一个域可以存储信息 常用方法 请求行 String getRemoteAddr() 参数:无 返回值:String 返回值意义:获取客户端ip地址 作用:获取客户端ip地址 请求头 String getHead(S 阅读全文
posted @ 2021-09-18 17:01 remix_alone 阅读(49) 评论(0) 推荐(0)
摘要: 介绍 ServletConfig:获取单个Servlet的配置信息 ServletContext:获取Web应用的配置信息、appliction域中共享信息、Web应用下的资源文件 ServletConfig下单Servlet的配置信息 <init-param> <param-name>name</ 阅读全文
posted @ 2021-09-18 16:40 remix_alone 阅读(37) 评论(0) 推荐(0)
摘要: 介绍 阅读全文
posted @ 2021-09-18 04:25 remix_alone 阅读(9) 评论(0) 推荐(0)
摘要: 介绍 JSON是JavaScript的对象 { "property": value , "property" :value2 } 定义 JSON 使用 { } 进行开始和结束,属性用 " " 括起来,”:“冒号进行赋值,不同的属性和值用“,”隔开. 使用 let student = {"name": 阅读全文
posted @ 2021-09-18 04:24 remix_alone 阅读(108) 评论(0) 推荐(0)
摘要: 介绍 使用function自定义类 定义 JavaScript使用function进行定义类 类的属性在function中定义 方法在function之外使用 className.propertype.functionName = functionName 原型方式添加 this关键字指向调用该方法 阅读全文
posted @ 2021-09-18 04:18 remix_alone 阅读(60) 评论(0) 推荐(0)
摘要: 介绍 JavaScript内置一些对象供直接调用 定义 1. Math对象 //不需要实例化 Math.random():伪随机数,[0,1) 。可以使用 Math.random() * 100 = [0,100); Math.round():把数值四舍五入成整数 Math.max(a,b,c,.. 阅读全文
posted @ 2021-09-18 04:11 remix_alone 阅读(27) 评论(0) 推荐(0)
摘要: 介绍 使用Chrome开发者模式,在source中对JavaScript代码添加断点。刷新网页即可进行调试。 在调试过程可以使用 F10 Step over 、 F11 Step into 、shift + F11 Step out F10:跳过函数的执行,在断点出看到结果 F11:进入函数内部 S 阅读全文
posted @ 2021-09-18 03:59 remix_alone 阅读(124) 评论(0) 推荐(0)
摘要: 介绍 函数是用function修饰的代码块 定义 JavaScript使用 function(){} 来创建函数 function( arg1 , arg2 ,arg3 .... ){ //代码块 } 函数内的参数被收纳在 ,arguments[] 数组中 函数重载 使用argmentus[] 数组 阅读全文
posted @ 2021-09-18 03:52 remix_alone 阅读(34) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 25 下一页