注意事项

2019-06-10  本文已影响0人  骏龙ll

注意事项:

1、引号(哪里加哪里不加要注意)

let json1={

                        'headurl' : '${login_user.headurl}',
                        "uid":'${login_user.uid}',
                        "nickname":'${login_user.nickname}',
                        'commtime' : mytime.getFullYear()+'-'+mytime.getMonth()+'-'+mytime.getDate(),
                        "goodnum":0,
                        "authority":'${login_user.authority}',
                        'replycontent' : $('#L_content').val()
                    }
$.post(
                        '${pageContext.request.contextPath}/go/commAdd',
                        {
                            "uid":'${login_user.uid}',
                            "aid":'${artdetail.aid}',
                            "commcontent":$('#L_content').val()
                        },
                        function(res){
                            if(res==0){
                                alert('评论失败')
                            }else{
                                alert('评论成功')
                            }

                        },
                        'json'
                    )

2、

上一篇 下一篇

猜你喜欢

热点阅读