NutzCN Logo
问答 我根据Nutz-book 一步一步走的 但是到了访问list.jsp的时候一直404 后台也没有报错信息
发布于 2320天前 作者 qq_183ceadf 1511 次浏览 复制 上一个帖子 下一个帖子
标签:
 @At("/")
    @Ok("jsp:jsp.user.list") // 真实路径是 /WEB-INF/jsp/user/list.jsp
    public void index() {
    }
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <display-name>nutzbook</display-name>
  	<filter>
      <filter-name>nutz</filter-name>
      <filter-class>org.nutz.mvc.NutFilter</filter-class>
      <init-param>
          <param-name>modules</param-name>
          <param-value>net.wendal.nutzbook.MainModule</param-value>
      </init-param>
      <init-param>
			<param-name>ignore</param-name>
			<param-value>^(.+[.])(jsp|png|gif|jpg|js|css|jspx|jpeg|html)$</param-value>
		</init-param>
  </filter>
  <filter-mapping>
      <filter-name>nutz</filter-name>
      <url-pattern>/*</url-pattern>
      
    <!-- ForwardView需要下面的配置 @Ok("->:/xxx/yyy/zzz") -->
      <dispatcher>REQUEST</dispatcher>
      <dispatcher>FORWARD</dispatcher>
      <dispatcher>INCLUDE</dispatcher>
  </filter-mapping>
 
  
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
</web-app>
11 回复

完整日志发一下

八月 16, 2018 10:21:52 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/9.0.1
八月 16, 2018 10:21:52 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Sep 27 2017 17:31:52 UTC
八月 16, 2018 10:21:52 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         9.0.1.0
八月 16, 2018 10:21:52 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 10
八月 16, 2018 10:21:52 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            10.0
八月 16, 2018 10:21:52 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
八月 16, 2018 10:21:52 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             C:\Program Files\Java\jre1.8.0_152
八月 16, 2018 10:21:52 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.8.0_152-b16
八月 16, 2018 10:21:52 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
八月 16, 2018 10:21:52 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         D:\apache-tomcat-9.0.1
八月 16, 2018 10:21:52 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         D:\apache-tomcat-9.0.1
八月 16, 2018 10:21:52 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\apache-tomcat-9.0.1
八月 16, 2018 10:21:52 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\apache-tomcat-9.0.1
八月 16, 2018 10:21:52 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\apache-tomcat-9.0.1\webapps
八月 16, 2018 10:21:52 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\apache-tomcat-9.0.1\endorsed
八月 16, 2018 10:21:52 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
八月 16, 2018 10:21:52 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: Loaded APR based Apache Tomcat Native library [1.2.14] using APR version [1.6.2].
八月 16, 2018 10:21:52 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
八月 16, 2018 10:21:52 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
八月 16, 2018 10:21:52 上午 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized [OpenSSL 1.0.2l  25 May 2017]
八月 16, 2018 10:21:52 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-8080"]
八月 16, 2018 10:21:53 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
八月 16, 2018 10:21:53 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-nio-8009"]
八月 16, 2018 10:21:53 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
八月 16, 2018 10:21:53 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1586 ms
八月 16, 2018 10:21:53 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Catalina]
八月 16, 2018 10:21:53 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/9.0.1
八月 16, 2018 10:21:53 上午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor [D:\apache-tomcat-9.0.1\conf\Catalina\localhost\nutzbook.xml]
八月 16, 2018 10:21:53 上午 org.apache.catalina.startup.HostConfig deployDescriptor
警告: A docBase [D:\apache-tomcat-9.0.1\webapps\nutzbook] inside the host appBase has been specified, and will be ignored
八月 16, 2018 10:21:53 上午 org.apache.catalina.startup.SetContextPropertiesRule begin
警告: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:nutzbook' did not find a matching property.
八月 16, 2018 10:21:55 上午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
18-08-16 10:21:55.973 INFO [main] Select SystemLog as Nutz.Log implement
18-08-16 10:21:56.151 INFO [main] NutFilter[nutz] starting ...
18-08-16 10:21:56.185 DEBUG [main] Locations count=9 time use 20ms
18-08-16 10:21:56.189 DEBUG [main] Locations count=13 time use 4ms
18-08-16 10:21:56.206 DEBUG [main] Loading by class org.nutz.mvc.impl.NutLoading
18-08-16 10:21:56.209 INFO [main] Nutz Version : 1.r.67-SNAPSHOT 
18-08-16 10:21:56.210 INFO [main] Nutz.Mvc[nutz] is initializing ...
18-08-16 10:21:56.210 DEBUG [main] Web Container Information:
18-08-16 10:21:56.211 DEBUG [main]  - Default Charset : UTF-8
18-08-16 10:21:56.212 DEBUG [main]  - Current . path  : C:\Users\dyh\Desktop\.
18-08-16 10:21:56.212 DEBUG [main]  - Java Version    : 1.8.0_152
18-08-16 10:21:56.212 DEBUG [main]  - File separator  : \
18-08-16 10:21:56.212 DEBUG [main]  - Timezone        : Asia/Shanghai
18-08-16 10:21:56.215 DEBUG [main]  - OS              : Windows 10 amd64
18-08-16 10:21:56.215 DEBUG [main]  - ServerInfo      : Apache Tomcat/9.0.1
18-08-16 10:21:56.215 DEBUG [main]  - Servlet API     : 4.0
18-08-16 10:21:56.216 DEBUG [main]  - ContextPath     : /nutzbook
18-08-16 10:21:56.216 DEBUG [main]  - context.tempdir : D:\apache-tomcat-9.0.1\work\Catalina\localhost\nutzbook
18-08-16 10:21:56.216 DEBUG [main]  - MainModule      : net.wendal.nutzbook.MainModule
18-08-16 10:21:56.218 DEBUG [main] >> app.root = D:/apache-tomcat-9.0.1/webapps/nutzbook
18-08-16 10:21:56.292 DEBUG [main] Using 101 castor for Castors
18-08-16 10:21:56.294 DEBUG [main] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx", "*async"],init=[])
18-08-16 10:21:56.339 DEBUG [main] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
18-08-16 10:21:56.340 DEBUG [main] loading [dao.js]
18-08-16 10:21:56.353 DEBUG [main] Loaded 2 bean define from path=[ioc/] --> [dataSource, dao]
18-08-16 10:21:56.361 INFO [main]  > scan 'net.wendal.nutzbook'
18-08-16 10:21:56.367 DEBUG [main] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
18-08-16 10:21:56.382 INFO [main]    > add 'userModule                              ' - net.wendal.nutzbook.UserModule.UserModule
18-08-16 10:21:56.421 DEBUG [main] Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
18-08-16 10:21:56.426 INFO [main] ... NutIoc init complete
18-08-16 10:21:56.429 INFO [main] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
18-08-16 10:21:56.431 DEBUG [main] @Views(DefaultViewMaker.class)
18-08-16 10:21:56.436 DEBUG [main] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
18-08-16 10:21:56.444 DEBUG [main] module class location 'file:/D:/apache-tomcat-9.0.1/webapps/nutzbook/WEB-INF/classes/'
18-08-16 10:21:56.444 DEBUG [main]  > scan 'net.wendal.nutzbook'
18-08-16 10:21:56.448 DEBUG [main] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
18-08-16 10:21:56.451 DEBUG [main]    >> add 'net.wendal.nutzbook.UserModule.UserModule'
18-08-16 10:21:56.451 DEBUG [main] Use org.nutz.mvc.impl.NutEntryDeterminer as EntryMethodDeterminer
18-08-16 10:21:56.474 INFO [main] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
18-08-16 10:21:56.493 INFO [main] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
18-08-16 10:21:56.512 DEBUG [main]    '/user/'                    >> (UserModule.java:138).index           : void       | @Ok(jsp:jsp.user.list) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
18-08-16 10:21:56.572 DEBUG [main]    '/user/add'                 >> (UserModule.java:94).add              : Object     | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
18-08-16 10:21:56.573 DEBUG [main]    '/user/count'               >> (UserModule.java:40).count            : int        | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
18-08-16 10:21:56.593 DEBUG [main]    '/user/delete'              >> (UserModule.java:120).delete          : Object     | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
18-08-16 10:21:56.605 DEBUG [main]    '/user/query'               >> (UserModule.java:128).query           : Object     | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
18-08-16 10:21:56.610 DEBUG [main]    '/user/logout'              >> (UserModule.java:57).logout           : void       | @Ok(>>:/ ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
18-08-16 10:21:56.611 DEBUG [main]    '/user/login'               >> (UserModule.java:46).login            : Object     | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
18-08-16 10:21:56.612 INFO [main] Found 7 module methods
18-08-16 10:21:56.612 DEBUG [main] @Localization not define
18-08-16 10:21:56.614 INFO [main] Setup application...
18-08-16 10:21:56.617 DEBUG [main] Get 'dao'<interface org.nutz.dao.Dao>
18-08-16 10:21:56.618 DEBUG [main] Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
18-08-16 10:21:56.619 DEBUG [main] 	 >> Load definition name=$aop_async
18-08-16 10:21:56.620 DEBUG [main] Found IocObject($aop_async) in AsyncAopIocLoader@938070417
18-08-16 10:21:56.620 DEBUG [main] 	 >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
18-08-16 10:21:56.659 DEBUG [main] Save object '$aop_async' to [app] 
18-08-16 10:21:56.665 DEBUG [main] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
18-08-16 10:21:56.666 DEBUG [main] 	 >> Load definition name=dao
18-08-16 10:21:56.666 DEBUG [main] Found IocObject(dao) in JsonLoader(paths=[ioc/])
18-08-16 10:21:56.666 DEBUG [main] 	 >> Make...'dao'<interface org.nutz.dao.Dao>
18-08-16 10:21:56.667 DEBUG [main] Save object 'dao' to [app] 
18-08-16 10:21:56.668 DEBUG [main] Get 'dataSource'<>
18-08-16 10:21:56.669 DEBUG [main] 	 >> Load definition name=dataSource
18-08-16 10:21:56.669 DEBUG [main] Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
18-08-16 10:21:56.669 DEBUG [main] 	 >> Make...'dataSource'<>
18-08-16 10:21:56.670 DEBUG [main] Save object 'dataSource' to [app] 
18-08-16 10:21:56.691 DEBUG [main] Load class com.alibaba.druid.pool.DruidDataSource without AOP
八月 16, 2018 10:21:57 上午 com.alibaba.druid.pool.DruidDataSource info
信息: {dataSource-1} inited
18-08-16 10:21:57.069 DEBUG [main] Load class org.nutz.dao.impl.NutDao without AOP
18-08-16 10:21:57.069 DEBUG [main] Get 'dataSource'<>
18-08-16 10:21:57.265 DEBUG [main] Jdbcs init complete
18-08-16 10:21:57.265 INFO [main] Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
18-08-16 10:21:57.455 DEBUG [main] select expert : org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert
18-08-16 10:21:57.461 DEBUG [main] JDBC Driver --> mysql-connector-java-5.1.14 ( Revision: ${bzr.revision-id} )
18-08-16 10:21:57.461 DEBUG [main] JDBC Name   --> MySQL-AB JDBC Driver
18-08-16 10:21:57.462 DEBUG [main] JDBC URL    --> jdbc:mysql://127.0.0.1:3306/nutzbook
18-08-16 10:21:57.465 DEBUG [main] Mysql : character_set_client=utf8mb4
18-08-16 10:21:57.466 DEBUG [main] Mysql : character_set_connection=utf8mb4
18-08-16 10:21:57.466 DEBUG [main] Mysql : character_set_database=utf8
18-08-16 10:21:57.466 DEBUG [main] Mysql : character_set_filesystem=binary
18-08-16 10:21:57.466 DEBUG [main] Mysql : character_set_results=
18-08-16 10:21:57.466 DEBUG [main] Mysql : character_set_server=utf8
18-08-16 10:21:57.466 DEBUG [main] Mysql : character_set_system=utf8
18-08-16 10:21:57.466 DEBUG [main] Mysql : character_sets_dir=C:\Program Files (x86)\MySQL\MySQL Server 5.5\share\charsets\
18-08-16 10:21:57.467 DEBUG [main] Mysql : binlog_format=STATEMENT
18-08-16 10:21:57.468 DEBUG [main] Mysql : database=nutzbook
18-08-16 10:21:57.468 DEBUG [main] Mysql : user=root@localhost
18-08-16 10:21:57.479 DEBUG [main] Database info --> MYSQL:[MySQL - 5.5.25a]
18-08-16 10:21:57.484 DEBUG [main] Found 4 resource by src( net/wendal/nutzbook/ ) , regex( ^.+[.]class$ )
18-08-16 10:21:57.520 DEBUG [main] SELECT COUNT(*) FROM t_user 
18-08-16 10:21:57.521 INFO [main] Nutz.Mvc[nutz] is up in 1304ms
八月 16, 2018 10:21:57 上午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deployment of configuration descriptor [D:\apache-tomcat-9.0.1\conf\Catalina\localhost\nutzbook.xml] has finished in [4,167] ms
八月 16, 2018 10:21:57 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\apache-tomcat-9.0.1\webapps\docs]
八月 16, 2018 10:21:59 上午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
八月 16, 2018 10:21:59 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\apache-tomcat-9.0.1\webapps\docs] has finished in [1,548] ms
八月 16, 2018 10:21:59 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\apache-tomcat-9.0.1\webapps\examples]
八月 16, 2018 10:22:00 上午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
八月 16, 2018 10:22:00 上午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
八月 16, 2018 10:22:00 上午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
八月 16, 2018 10:22:00 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\apache-tomcat-9.0.1\webapps\examples] has finished in [1,742] ms
八月 16, 2018 10:22:00 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\apache-tomcat-9.0.1\webapps\host-manager]
八月 16, 2018 10:22:02 上午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
八月 16, 2018 10:22:02 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\apache-tomcat-9.0.1\webapps\host-manager] has finished in [1,276] ms
八月 16, 2018 10:22:02 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\apache-tomcat-9.0.1\webapps\manager]
八月 16, 2018 10:22:03 上午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
八月 16, 2018 10:22:03 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\apache-tomcat-9.0.1\webapps\manager] has finished in [1,273] ms
八月 16, 2018 10:22:03 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\apache-tomcat-9.0.1\webapps\ROOT]
八月 16, 2018 10:22:04 上午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
八月 16, 2018 10:22:04 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\apache-tomcat-9.0.1\webapps\ROOT] has finished in [1,242] ms
八月 16, 2018 10:22:04 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8080"]
八月 16, 2018 10:22:04 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
八月 16, 2018 10:22:04 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 11302 ms

会自动跳转到http://127.0.0.1:8080/nutzbook/

这是Usermodule的 开头注释

@IocBean
@At("/user")
@Ok("json:{locked:'password|salt',ignoreNull:true}")
@Fail("http:500")
@Filters(@By(type=CheckSession.class,args= {"me","/"}))

然后 就访问 WebContent/index.jsp 了

我这里的弹窗应该怎么写
登陆成功后自动跳转过去

$(function() {
        $("#login_button").click(function() {
            $.ajax({
                url : base + "/user/login",
                type: "POST",
                data:$('#loginForm').serialize(),
                error: function(request) {
                    alert("Connection error");
                },
                dataType:"json",
                success: function(data) {
                   // alert(data);
                    if (data == true) {
                        alert("登陆成功");
                        window.location.href ='list.jsp';
                    } else {
                        alert("登陆失败,请检查账号密码")
                    }
                }
            });
            return false;
        });
window.location.href = base + "/user/";

WebContent/WEB-INF下的文件是无法通过浏览器URL直接访问的, 都要经过入口方法中转

明白了 谢谢 有你的解释 我瞬间懂了自己看那个url 映射一直琢磨不透

我之前也遇到这个问题,其实就要将
@At("/")
@Ok("jsp:jsp.user.list") // 真实路径是 /WEB-INF/jsp/user/list.jsp
public void index() {
}
改成
@At("/list")
@Ok("jsp:jsp.user.list") // 真实路径是 /WEB-INF/jsp/user/list.jsp
public void index() {
}
就可以了,昨天我也是在这里遇到了问题,问了大神才懂的,你可以试试,如果行得通,记得给我个回复,谢谢

添加回复
请先登陆
回到顶部