爱玺玺

爱玺玺的生活日记本。wx:lb87626

eclipse快捷键 alt+shift+m将代码块封装到方法中

eclipse快捷键 alt+shift+m将代码块封装到方法中

android自定义toast

android自定义toast

js下拉多级子菜单

css中使用display:none后,它的子元素将不会被执行,那么js就自然无法控制其子元素显示隐藏,因此在js中使其隐藏代替css的display:none

css一旦使用display: none;那么它的子元素将不会被加载不能被js控制

#nav ul li ul{border: solid 1px #ff0; position: relative; display: none;}/*这里的display设置为none,那么它的子元素id=test2不会被加载,也就是js无法再对其控制。解决方案只有不要css控制隐藏,通过js控制*/

js通过点击按钮实现上下无缝滚动

js通过点击按钮实现上下无缝滚动

phpstudy配置本地配置多站点

目录:C:\Windows\System32\drivers\etc\hosts 里面配置:

 127.0.0.1       www.localanxiansheng.com
 ::1             localanxiansheng.com


php分页完整版

<?php 

   //页面编码

   header("Content-Type: text/html; charset=utf-8");

   $con=mysql_connect("localhost","root","root");

   if(!$con){

php+mysql utf8乱码解决

   //页面编码

   header("Content-Type: text/html; charset=utf-8");

   $con=mysql_connect("localhost","root","root");

  &n

php分页算出当前页起始记录

$startrow=($page-1)*pagesize;

$startrow:开始记录

$page:当前页

$pagesize:每页显示多少记录数

php获取记录总数records

<?php 

   $con=mysql_connect("localhost","root","root");

   if(!$con){

    die("could not connect");

 

Powered By Z-BlogPHP 1.4 Deeplue Build 150101

Copyright Your WebSite.Some Rights Reserved.

蜀ICP备11021721号-5