注册账号 - 易加速 日期:2025-05-05 分类:常规 注册账号 × 账号 密码 <div class='form-group'> <label>绑定应用 *</label> <select class='form-control' name='add_appid' id='add_appid'> <option value='10000'>易加速网页端</option> </select> </div> <div class='form-group text-center'> <button class='btn btn-primary' type='submit' name='add_submit' id='add_submit'>确认添加</button> </form> </a> </div> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --> </div><!-- /.modal --> <script> $.ajax({ cache: false, type: 'POST',//请求的方式 url : 'ajax.php?act=user_add',//请求的文件名 data : {pwd:add_pwd,user:add_user,appid:add_appid}, dataType : 'json', success : function(data) { console.log(data); document.getElementById('add_submit').disabled=false; document.getElementById('add_submit').innerHTML='确认添加'; if(data.code == 200){ t.NotificationApp.send('成功',data.msg,'top-center','rgba(0,0,0,0.2)','success') window.setTimeout('window.location=''+window.location.href+''',1000); }else{ t.NotificationApp.send('失败',data.msg,'top-center','rgba(0,0,0,0.2)','error') } } }); return false;//重要语句:如果是像a链接那种有href属性注册的点击事件,可以阻止它跳转。 }); AI 优化版 原文地址:https://www.cveoy.top/t/topic/pG4l 著作权归作者所有。请勿转载和采集! 免费AI点我,无需注册和登录 上一篇: EMEA Information Update: Requesting Additional Time 下一篇: 求曲线y^3+3x^2 y+4=0上点M处的切线法线方程