账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    FreeMarker 取值,取不到中文的值?该怎么取出传过来的中文值呢?
    32
    0

    @Controller
    public class TestController {

    @RequestMapping("/test")
    public String test(ModelMap model) {
        model.put("search", "搜索");
        return "test";
    }

    }

    传递了一个中文的搜索值,但是前端不弹出对话框,如果是英文或者数字的话就能弹出来

    前端的JS

    <script type="text/javascript">

        $(document).ready(function () {
            alert(${search})
    
        });
    
    
    </script>
    
    
    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 几缕清葭 普通会员 1楼
      502 Bad Gateway

      502 Bad Gateway


      nginx
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部