随笔分类 - JS+Jquery+Ajax+Json
摘要:jquery实现导航滑动 首页 课程大厅 学习中心 个人中心 关于我们 主页 前端课程 手机开发 后台编程 Javascript CSS JQue...
阅读全文
摘要:演示:Javascript实现前端简单路由 首页 产品 服务 ...
阅读全文
摘要:鼠标事件是在用户移动鼠标光标或者使用任意鼠标键点击时触发的。 (1):click事件:click事件于用户在元素敲击鼠标左键,并在相同元素上松开左键时触发。 $('p').click(function(){ alert('click function is running !'); }); (2):dbcl...
阅读全文
摘要:var expanderModule=angular.module('expanderModule',[]) expanderModule.directive('expander',function(){ return{ restrict:'EA', replace:true, transclude:true, ...
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="//apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.min.css"> <scrip
阅读全文
摘要:本文通过设置Access-Control-Allow-Origin来实现跨域。 例如:客户端的域名是client.runoob.com,而请求的域名是server.runoob.com。 如果直接使用ajax访问,会有以下错误: XMLHttpRequest cannot load http://server.runoob.com/server.php. No 'Access-Control-A...
阅读全文
摘要:php数据库取数据 jquery及ajax实现滑动请求加载 html页面
阅读全文
摘要://第一种 function getLocalTime(nS) { return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/,' '); } alert(getLocalTime(1293072805)); //结果是2010/12/23 上午10:53 //第二种 ...
阅读全文
摘要:水果选择 水果选择: >" name="" id="btn">
阅读全文
摘要:jqery和js如何判断checkbox是否选中 jquery: $("input[type='checkbox']").attr('value') 返回结果:501 $("input[type='checkbox']").is(':checked') 返回结果:选中=true,未选中=false js: if(document.getElementById("c...
阅读全文
摘要:实现的效果图 <?php class Car{ private $carColor; private $carType; public function __construct($carColor,$carType){ $this->carColor=$carColor; $this->carTyp
阅读全文
摘要:前端php页面 <?php if(isset($_GET['id'])){ $id=$_GET['id']; } include('data/conn.php'); $sqls="select count from activity where id=$id"; $results=mysqli_qu
阅读全文
摘要:匹配11位 (注意对比上面的区别)
阅读全文
摘要:<body> <form name="form_register"> <input type="text" id="username" name="username" size="20"> <input type="button" value="查看用户名是否被占用" onclick="javasc
阅读全文


浙公网安备 33010602011771号