0
点赞
收藏
分享

微信扫一扫

PHP 点击链接更新数据库,返回值

琛彤麻麻 2022-07-27 阅读 40


<a href="javascript:void(0)" title="收藏" class="c-p-n-txt" id='collection_user'>收藏</a>


<script>//收藏
$('#collection_user').on('click', function(){
var url = encodeURI("add_js_note.php?action=collection&name=$tt&id_id=$id");
//Ajax获取
$.post(url, {}, function(str){
layer.msg(str);
});
});



举报

相关推荐

0 条评论