安全问答

安全问答是一个知识全球问答,包含丰富的问答知识

首页 常规 游戏 娱乐 科技 程序员

注册账号 - 易加速

  • 日期:2026-02-19
  • 分类:常规

注册账号

					<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>

上面是界面代码,下面是JavaScript代码 $.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/pG4z 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录

  • 上一篇: 如何赚钱:7种可行方法和建议
  • 下一篇: 村民小组多功能议事厅建设申请书 - 乡村振兴重要举措

© 2019 • 2025 - 安全问答 站长邮箱:wxgpt@qq.com