
javascript
qq1105273619
这个作者很懒,什么都没留下…
展开
-
使用javascript完成一个ajax请求
主入口 导入必要的库 准备工作 @app.route('/content/') def content(): return render_template('content.html') @app.route('/xhr/') def xhr(): return render_template('xhr.html') content.html中的内容为纯文本 ‘te...翻译 2018-02-24 16:59:40 · 250 阅读 · 0 评论 -
使用ajax完成一个简单加法运算
cal.html页面 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>ajax calculator</title> </head> <body&a翻译 2018-03-03 20:55:14 · 1087 阅读 · 0 评论 -
使用jquery完成一个ajax请求
1.$().load(url,callback) 2.$.get(url,data,callback) 3.$.ajax({选项}) url 地址 method 方法(GET,POST) data 提交给服务器的数据 dataType 服务器返回的数据 timeout 超时时间,单位毫秒 success 成功后的回调函数 ...翻译 2018-03-13 21:42:20 · 405 阅读 · 0 评论