發(fā)表日期:2018-09 文章編輯:小燈 瀏覽次數(shù):3227
織夢系統(tǒng)有一個extend.func.php文件,我們可以在里面寫上自定義函數(shù)來實(shí)現(xiàn)自己想要的功能,比如今天我們要實(shí)現(xiàn)擴(kuò)展函數(shù)來調(diào)用Dede的任意一個數(shù)據(jù)表的內(nèi)容。
首先修改/include/extend.func.php,里面的把這段代碼加進(jìn)去:
然后在我們需要調(diào)用數(shù)據(jù)的地方加上調(diào)用代碼:
舉例說明:
釋義:調(diào)用id為本文id的文章的body部分。
日期:2018-09 瀏覽次數(shù):4419
日期:2018-09 瀏覽次數(shù):3060
日期:2018-09 瀏覽次數(shù):3895
日期:2018-09 瀏覽次數(shù):3824
日期:2018-09 瀏覽次數(shù):3388
日期:2018-09 瀏覽次數(shù):3778
日期:2018-09 瀏覽次數(shù):3227
日期:2018-09 瀏覽次數(shù):3490
日期:2018-09 瀏覽次數(shù):3237
日期:2018-09 瀏覽次數(shù):3267
日期:2018-09 瀏覽次數(shù):2998
日期:2018-09 瀏覽次數(shù):3552
日期:2018-09 瀏覽次數(shù):3528
日期:2018-09 瀏覽次數(shù):3099
日期:2018-09 瀏覽次數(shù):3023
日期:2018-09 瀏覽次數(shù):3794
日期:2018-08 瀏覽次數(shù):2992
日期:2018-08 瀏覽次數(shù):3154
日期:2018-08 瀏覽次數(shù):2971
日期:2018-08 瀏覽次數(shù):2975
日期:2018-08 瀏覽次數(shù):3018
日期:2018-08 瀏覽次數(shù):2783
日期:2018-08 瀏覽次數(shù):2902
日期:2018-08 瀏覽次數(shù):2844
日期:2018-08 瀏覽次數(shù):2864
日期:2018-08 瀏覽次數(shù):3029
日期:2018-08 瀏覽次數(shù):3088
日期:2018-08 瀏覽次數(shù):3411
日期:2018-08 瀏覽次數(shù):2934
日期:2018-08 瀏覽次數(shù):3247
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.