原创 js函數機制

js加載完成頁面後默認執行函數:window.onload=function(){alert('錯誤提示');}

原创 安全狗添加運程服務器登陸用戶

安全狗開啓了防護功能所以需要添加安全狗遠程用戶,首先打開服務器安全狗----主動防護----遠程保護--添加用戶---添加-需要遠程的計算機名稱

原创 thinkphp輸出與調用view頁面呈現

class UserAction extends Action{         public function show(){         $m=M('User');         $oge=$m

原创 響應式柵格

 學習地址:http://v3.bootcss.com/css/#grid

原创 css定位

<style> /* div1懸浮在div2上 */ .div1{position:absolute;z-index:1000;} .div2{overflow:hidden;position: relative;} </style> <

原创 tp連貫操作

   $m = M('User'); where 設置查詢條件     $show = $m->where(array('id'=>1))->select(); order 對查詢結果排序     $sh

原创 ThinkPHP項目入口文件配置

  //Think3.1定義文件目錄     define('APP_NAME','Home');    //創建模型控制     define('APP_PATH','./Home/');    //開啓調試模式不緩存     def

原创 css控制一個ul標籤下的指定li標籤樣式

ul li:first-child{margin-left:0;}  第一個 ul li:last-child{margin-left:0;}   最後一個 ul li:nth-child(5){margin-left:0;} 指定第幾

原创 織夢報錯提示 DedeCMS Error: (PHP 5.3 and above) Please set 'request_order' ini value to include C,G and P

這個錯誤不是所有織夢版本都會有的 一般來說虛擬主機這些事無法修改的 所以只能改判斷 include/common.inc.php文件的第32行到第36行。將這段判斷代碼註釋即可: if(version_compare(PHP_VERSIO

原创 織夢dedecms調用當前文章欄目內容

找到根目錄include\helpers\archive.helper.php在其中添加新函數 /**  *  查詢當前文章的父級欄目內容  */  if ( ! function_exists('GetParentContent'))