上一页 1 2 3 4 5 6 7 ··· 12 下一页
<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>鼠标拖拽多选功能</title> <script src="https://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script> Read More
posted @ 2017-12-16 16:39 xzzzys Views(1318) Comments(0) Diggs(0) Edit
odd表示奇数行,even表示偶数行; tr:nth-child(odd); .table-striped > tbody > tr:nth-child(odd) { odd表示奇数行,even表示偶数行; tr:nth-child(odd); .table-striped > tbody > tr Read More
posted @ 2017-12-16 15:55 xzzzys Views(11426) Comments(0) Diggs(0) Edit
jquery如何获取第一个或最后一个子元素? 通过children方法,children("input:first-child") $(this).children("input:first-child").val(); $(this).children("input:last-child").va Read More
posted @ 2017-12-16 15:54 xzzzys Views(1866) Comments(0) Diggs(0) Edit
<script> var windowHeight = $(window).height(), $body = $("body");// console.log($(window).height());// console.log($('body').height()); $body.css("he Read More
posted @ 2017-12-16 15:45 xzzzys Views(183) Comments(0) Diggs(0) Edit
<input type="button" id="btn" value="开始答题"> var start = 3;var step = -1;var k=0;function count(){ document.getElementById("btn").value ="倒计时:"+ start+ Read More
posted @ 2017-12-15 18:02 xzzzys Views(411) Comments(0) Diggs(0) Edit
Jquery:$("#accuracy").val($("#accuracy").val().replace(/\ +/g,""));//去掉空格 .replace(/\ +/g,"") //去掉空格方法$("#content").val($("#content").val().replace(/[ Read More
posted @ 2017-12-08 16:27 xzzzys Views(1088) Comments(0) Diggs(0) Edit
网站开发时,我们时常需要把没有内容的标签隐藏或者去掉。在用JQ有两种好的解决办法: 一、判断文本是否为空 var jqObj = $(this);if(jqObj.text().trim()){ //trim()方法是去空格,$.trim()函数删除提供字符串的所有换行符,空格(包括非中断空格),开 Read More
posted @ 2017-12-08 16:26 xzzzys Views(4615) Comments(0) Diggs(0) Edit
原始类型共8种: 1, 4种标量类型:boolean(布尔型)、integer(整形)、float/double(浮点型)、string(字符串型); 2, 2种复合型:array(数组)、object(对象) 3, 2种特殊类型:resource(资源)、NULL 注:$符是变量的标示符,所有变量 Read More
posted @ 2017-11-29 17:52 xzzzys Views(133) Comments(0) Diggs(0) Edit
PHP配置: <?phpclass appointmentController extends Controller{public function __construct(){parent::__construct();} public function index(){$this->smarty Read More
posted @ 2017-11-29 16:49 xzzzys Views(286) Comments(0) Diggs(0) Edit
/* MUI 使用说明: * * 1.每个用到mui的页面都调用下mui.init。 * 2.如果需要使用大H5+对象,就写到plusReady中,如plus对象。 */ '''【MUI开发注意事项】----------------------------------------------------------------------------------- //1.... Read More
posted @ 2017-11-29 11:32 xzzzys Views(238) Comments(0) Diggs(0) Edit
上一页 1 2 3 4 5 6 7 ··· 12 下一页