1 .To take advantage of the capabilities of modern browsers that use web
standards, such as XHTML and CSS, your web application is being converted from simple JSP pages to
JSP Document format. However, one of your JSPs, /scripts/screenFunctions.jsp, generates a JavaScript
file. This file is included in several web forms to create screen-specific validation functions and are
included in these pages with the following statement: 10. <head>
11. <script src='/scripts/screenFunctions.jsp'
12. language='javascript'
13. type='application/javascript'> </script>
14. </head>
15. <!-- body of the web form --> Which JSP code snippet declares that this JSP Document is a JavaScript file? A. <%@ page contentType='application/javascript' %>
B. <jsp:page contentType='application/javascript' />
C. <jsp:document contentType='application/javascript' />
D. <jsp:directive.page contentType='application/javascript' />
E. No declaration is needed because the web form XHTML page already declares the MIME type of the
/scripts/screenFunctions.jsp file in the <script> tag. Answer: D 为什么答案是D,A为什么不对?上网一搜就搜到SCWCD的相关题库,但是一个分析都没有,一个这样用的例子也没有。有没有哪位高人给讲解下。
standards, such as XHTML and CSS, your web application is being converted from simple JSP pages to
JSP Document format. However, one of your JSPs, /scripts/screenFunctions.jsp, generates a JavaScript
file. This file is included in several web forms to create screen-specific validation functions and are
included in these pages with the following statement: 10. <head>
11. <script src='/scripts/screenFunctions.jsp'
12. language='javascript'
13. type='application/javascript'> </script>
14. </head>
15. <!-- body of the web form --> Which JSP code snippet declares that this JSP Document is a JavaScript file? A. <%@ page contentType='application/javascript' %>
B. <jsp:page contentType='application/javascript' />
C. <jsp:document contentType='application/javascript' />
D. <jsp:directive.page contentType='application/javascript' />
E. No declaration is needed because the web form XHTML page already declares the MIME type of the
/scripts/screenFunctions.jsp file in the <script> tag. Answer: D 为什么答案是D,A为什么不对?上网一搜就搜到SCWCD的相关题库,但是一个分析都没有,一个这样用的例子也没有。有没有哪位高人给讲解下。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货