效果如下
1.定在頭部
2.ajax處理json資料position: fixed;
z-index: 999;
top: 0;
opacity:1;
設定datatype:'json'之後,json資料就直接可以通過json.的方式處理了。// 獲取**公告
function getnotice() ",
datatype:'json', // 設為json之後,就能夠很好的處理獲取的json資料,json.status
async: false,
success: function(json)
});return res;
}
3.最後載入,頁面更好看。
4.獲取sql語句的thinkphp處理$(document).ready(function(e) "; // 頁面使用thinkphp常量
var json = getnotice();
if ( action_name == 'index' && json.status == 1) );
$(".top-notice").show();
$('#notice ul').html(""+html);
$('#notice').unslider(); // 輪播
}});
$where['endtime'] = array(array('eq',0),array('gt',time()), 'or') ;// 獲取公告
function ajaxgetnotice() else }}
巧妙的處理了這種邏輯關係。
商城公告功能開發總結
效果如下 1.定在頭部 position fixed z index 999 top 0 opacity 1 2.ajax處理json資料 獲取 公告 function getnotice datatype json 設為json之後,就能夠很好的處理獲取的json資料,json.status as...
iOS 分享功能開發
如下圖 我們今天要講到的方式是使用了乙個第三方工具 一,註冊賬號 去官網註冊 二,sdk整合 新增依賴庫檔案 必須新增的依賴庫 根據社交平台需要新增的依賴庫 到此為止sdk整合就算完成 下來我們開始 部分 三,初始sharesdk和社交平台 1 設定根檢視控制器 必須設定rootviewcontro...
發票功能開發小結
1 li前面的點消除 list style none li不需要選不同的class名稱。只需要乙個class。可以使用 nth child n doctype html html head style p nth child odd p nth child even style head body ...