原创 解決安卓移動端軟鍵盤按鈕頂上去

//安卓頂上 var win_h = $(window).height(); window.addEventListener('resize', function () { var u = navigat

原创 php判斷比較兩個數組中的數據

$q = array(1,2,30,40,50,70,80); $s = array(1,2,4,8,9,9,34,2,12,324,3,24,33); //共同的部分 $m=array_intersect($q,$s); v

原创 php微信關注後消息回覆以及關鍵字回覆

<?php header('content-type:text/html;charset=utf-8'); define("TOKEN", "weixin"); //define your token $wx = new wechatC

原创 html刪除部分節點

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <div> <p cl

原创 前端分頁

{extend name="/public/base"} {block name="title"} 直播專區 {/block} {block name="headerCss"}{/block} {block name="conte

原创 解決移動前端的鍵盤頂上去,上部分看不到問題

$(function(){     $('body').height($('body')[0].clientHeight); });

原创 php 用swoole創建一個簡單的多房間聊天室

前端代碼: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> p { text-

原创 h5屬性--預覽

<div class="upload"> <span>上傳圖片</span> <div class="uploadImg center"> <input type="file" multiple="multiple" id=

原创 php 通過curl下載圖片文件

public function img_info() { $url = "https://bpic.588ku.com/special_image/18/11/12/4f827e4a03e9e15d11077ba5e37a03b

原创 php微信分享

<?php namespace app\video_mall\controller; use think\Session; use think\Controller; use think\Cache; class WechatShar

原创 使用jquery.form插件的方法

<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <form enct

原创 js 移動端下拉框加載更多分頁

// 滑動分頁 --重點 $(window).scroll(function () { if ($(window).scrollTop() + $(window).height() + 5 > $(document).heigh

原创 js投票活動的倒計時功能

<!-- 活動倒計時 --> <div class="count-backwards flex column item-center"> <h3>活動結束倒計時</h3> <p><span class="number"

原创 php 用swoole 實現定時器 執行linux腳本,檢查進程掛了,重啓操作

利用swoole的定時器,每兩秒檢查一下 class Grep  {          const PORT = 9999;     public function port()     {         $shell = "nets

原创 php遇到面試試題—

1.session和cookie的區別? 1、cookie數據存放在客戶的瀏覽器上,session數據放在服務器上。 2、cookie不是很安全,別人可以分析存放在本地的cookie並進行cookie欺騙,考慮到安全應當使用session