2017年7月13日

摘要: <!DOCTYPE html><html > <head> <meta charset="UTF-8"> <title>Vue Demo</title> </head> <body> <div id="my_view"> 搜索:<input v-model="search" type="text" 阅读全文
posted @ 2017-07-13 11:18 醉半仙 阅读(71) 评论(0) 推荐(0) 编辑

2017年7月12日

摘要: <?php /*http://www.jb51.net/article/22199.htm*/header("Content-type: text/html; charset=utf-8"); header("Content-type:application/vnd.ms-excel"); head 阅读全文
posted @ 2017-07-12 17:53 醉半仙 阅读(72) 评论(0) 推荐(0) 编辑
摘要: <?php // 时间日期 //y返回年最后两位,Y年四位数,m月份数字,M月份英文。d月份几号数字,D星期几英文 $date=date("Y-m-d"); $date=date("Y-m-d H:i:s");//带时分秒 //include,include_once.require,require 阅读全文
posted @ 2017-07-12 16:11 醉半仙 阅读(117) 评论(0) 推荐(0) 编辑
摘要: <?phpheader("Content-type: text/html; charset=utf-8"); /** * 获取客户端IP * @return [string] [description] */function getClientIp() { $ip = NULL; if (isset 阅读全文
posted @ 2017-07-12 16:04 醉半仙 阅读(75) 评论(0) 推荐(0) 编辑

2017年7月11日

摘要: https://www.w3cschool.cn/smarty/smarty-escaping.html 避免Smarty解析 避免Smarty解析 有时候部分模板中的代码是不需要或者不希望被Smarty解析的, 比较典型的例子是嵌入在页面HTML中的Javascript或CSS代码。 问题通常发生 阅读全文
posted @ 2017-07-11 11:37 醉半仙 阅读(85) 评论(0) 推荐(0) 编辑

2017年7月7日

摘要: <!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title>胶卷式放映</title> <style type="text/css" id="style1"> * { margin: 0; padding: 0 } body 阅读全文
posted @ 2017-07-07 10:59 醉半仙 阅读(167) 评论(0) 推荐(0) 编辑

2017年6月22日

摘要: <script type="text/javascript"> $("#nav_down").click(function(){ //var h = $(document).height()-$(window).height(); //$(document).scrollTop(h); $('htm 阅读全文
posted @ 2017-06-22 14:56 醉半仙 阅读(333) 评论(0) 推荐(0) 编辑

2017年6月13日

摘要: 冒泡排序 void BubbleSort(int *a, int n){ int i,j,t; for(i=0; i<n-1; i++) { for(j=0; j<n-1-i; j++) { if(a[j]>a[j+1]) { t = a[j]; a[j] = a[j+1]; a[j+1] = t; 阅读全文
posted @ 2017-06-13 12:28 醉半仙 阅读(146) 评论(0) 推荐(0) 编辑

2017年6月11日

摘要: 21个常用的PHP函数代码段 1. PHP可阅读随机字符串 此代码将创建一个可阅读的字符串,使其更接近词典中的单词,实用且具有密码验证功能。 /***************@length &ndash; length of random string (must be a multiple of 阅读全文
posted @ 2017-06-11 14:30 醉半仙 阅读(733) 评论(0) 推荐(0) 编辑

2017年5月10日

摘要: <html><head> <title>js判断输入字符串长度(汉字算两个字符,字母数字算一个)</title> <style type="text/css"> .pbt { margin-bottom: 10px; } .ie6 .pbt .ftid a, .ie7 .pbt .ftid a { 阅读全文
posted @ 2017-05-10 18:12 醉半仙 阅读(2598) 评论(0) 推荐(0) 编辑

导航