社区
community_281
帖子详情
xkey的留言板
xkey
2020-01-02 06:49:01
大家好,这里是我的留言板,如果有问题,欢迎大家留言,我会第一时间进行回复
...全文
47
回复
打赏
收藏
xkey的留言板
大家好,这里是我的留言板,如果有问题,欢迎大家留言,我会第一时间进行回复
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
简单的PHP+MySQL+AJAX
留言板
实例
对初学AJAX的同学会有帮助的。 ----------ajax.js--------------- var request = false; try { request = new XMLHttpRequest(); } catch (trymicrosoft) { try { request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (othermicrosoft) { try { request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (failed) { request = false; } } } if (!request) alert("Error initializing XMLHttpRequest!"); function getCustomerInfo() { document.getElementById("output").innerHTML = "Loading..."; document.getElementById("submit").disabled = true; var name = document.getElementById("name").value; var text = document.getElementById("text").value; var
key
= document.getElementById("
key
").value; var answer = document.getElementById("answer").value; var poststr = "name="+name+"&text="+text+"&
key
="+
key
+"&answer="+answer; var url = "doit.php"; request.open("POST", url, true); request.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); request.send(poststr); request.onreadystatechange = updatePage; } function updatePage() { if (request.readyState == 4) if (request.status == 200) document.getElementById("output").innerHTML = request.responseText; else if (request.status == 404) alert("目标地址不存在"); else alert("警告: 错误代码 " + request.status); } function getInfo() { document.getElementById("output1").innerHTML = "Loading..."; var url = "show.php"; var d = new Date().getTime(); request.open("GET", url+"?d="+d.toString(), true); request.onreadystatechange = updatePage1; request.send(); } function updatePage1() { if (request.readyState == 4) if (request.status == 200) document.getElementById("output1").innerHTML = request.responseText; else if (request.status == 404) alert("目标地址不存在"); else alert("警告: 错误代码 " + request.status); }
Jquery来制作简易版的
留言板
.
效果图: 代码如下: <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>制作
留言板
</title>
IDEA教程
idea的官方网址:http://www.jetbrains.com/idea/idea教程目录:- idea下载和安装- idea配置jdk、maven- 使用idea创建一个maven管理的工程/创建一个SpringBoot工程- idea中多窗口项目显示技巧- idea快捷键设置- 配置tomcat并部署项目- idea中类图的使用- idea多线程的Debug功能讲解- idea中Terminal的使用- 使用idea查找历史代码- idea插件的安装使用- * lombok- * CodeGlance- * Translation- * Grep Console- * Maven Helper- * mybatis-plus- *
Key
promoter X- * Alibaba Cloud Toolkit- * Background Image Plus- * Alibaba Java Coding Guidelines### idea配置jdk、mavenjdk百度云盘地址:链接: https://pan.baidu.com/s/15Y3JSAMCtyaVHmzWGdBUQA 提取码: phiuMaven官网下载地址:http://maven.apache.org/download.cgi### 使用idea创建一个maven管理的工程/创建一个SpringBoot工程
小程序云开发实战:推文
留言板
没什么开发基础,这是一篇慢慢摸索做出来的小程序的总结。实现了
留言板
功能,用户可留言,管理员可置顶、回复、删除、创建新的
留言板
。 18年三月以后注册的微信公众号都没有了留言功能。曲线救国的方法就是使用小程序插入到推文底部,用户点击可打开小程序查看留言。看了别人搞的都要收费,我还担心数据安全问题,所以就自己学着做了一个。
php
留言板
项目 ajax,PHP Ajax
留言板
本案例代码已经提供下载,点击这里!AJAX即“Asynchronous JavaScript and XML”(异步JavaScript和XML),AJAX并非缩写词,而是由Jesse James Gaiiett创造的名词,是指一种创建交互式。Ajax的核心是JavaScript对象XmlHttpRequest。该对象在Internet Explorer 5中首次引入,它是一种支持异步请求的技术。...
community_281
576
社区成员
254,422
社区内容
发帖
与我相关
我的任务
community_281
提出问题
复制链接
扫一扫
分享
社区描述
提出问题
其他
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章