美文网首页
注意事项

注意事项

作者: 骏龙ll | 来源:发表于2019-06-10 10:22 被阅读0次

注意事项:

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、

相关文章

网友评论

      本文标题:注意事项

      本文链接:https://www.haomeiwen.com/subject/imsmaqtx.html