原创 獲取WordPress訪客評論/留言的真實IP地址
https://www.jianshu.com/p/f53313c8a16d 第一、腳本功能 if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $list = explode(',',$_SER
原创 apache 多站點配置
<VirtualHost _default_:80> DocumentRoot "e:\myphp_www\PHPTutorial\WWW" <Directory "e:\myphp_www\PHPTutorial\WWW"> Optio
原创 tp5教程 1 命名空間
命名空間 只對類 函數 const 起作用
原创 iframe 高度自適應代碼
$(document).ready(function(){ var height=$(window).height()-183; //獲取頁面高度,因爲是三欄式佈局,我把頭部和底部的高度全部加上然後減掉 $(".d
原创 wordpress 後臺 打開媒體庫 ajax 知識點
<?php /* Plugin Name: jzbk-easy-input Description: 家政百科自定義參數簡單輸入 Version: 1.0 Author: 小柳 */ class jzbk_easy_input{ //類的
原创 wordpress 後臺 按鈕 分頁 頁面樣式
<div class="wrap"> <h2>插件頂級菜單</h2> <div id="message" class="updated">設置保存成功</div> <div id="mess
原创 wordpress 插件 建站
插件頭信息 /* Plugin Name: xl_test_plugins Description: 我學習插件的測試插件 Version: 1.0 Author: 小柳 */ ------------------------------
原创 wordpress主題 建站
常用函數爛筆頭 <? echo get_bloginfo('charset'); ?> //編碼方式 <? bloginfo('description'); ?> 獲取副標題 <? bloginfo('stylesheet_url');
原创 linux命令爛筆頭
ifconfig 查看ip ls -l ls -la ls 路徑 列出當前目錄下的文件 clear 清除 su 切換用戶 init 3切換命令行 桌面 cd 打開目錄 pwd 打印當前路徑 軟件操作 rpm -qa 查詢軟件 rpm -
原创 wordpress wpdb
global $wpdb; //1、學會使用insert()方法向數據庫中添加數據 //$wpdb->insert( $wpdb->prefix . 'xs', array( 'xm' => '黃聰3',
原创 wordpress 爛筆頭
wordpress 官方檢索網址 https://developer.wordpress.org/reference/
原创 ajax 分頁的實現
index.html get_data.php兩個文件 index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewp
原创 Meta標籤介紹
2:meta 的屬性有兩種:name和http- equiv。 name屬性主要用於描述網頁,對應於content(網頁內容) 1、<meta name="Generator" conte
原创 jax 實例 ($.ajax、$.post、$.get)
Jquery在異步提交方面封裝的很好,直接用AJAX非常麻煩,Jquery大大簡化了我們的操作,不用考慮瀏覽器的詫異了。 推薦一篇不錯的jQuery Ajax 實例文章,忘記了可以去看看,地址爲: http://jun1986.iteye