關於頁面生成後自動載入下拉選擇項

2021-07-26 15:46:14 字數 494 閱讀 4120

本功能實現效果圖如下,實現方式為使用常量集合工具類codehandler在此類中載入對應專案的變數,使用方式如下

例如載入乙個抵押狀態

首先在實體類中新增pofieldannotation注釋

* 抵押狀態 0表示在抵押狀態,1表示結束抵押狀態

*/@pofieldannotation(namevalues = )

private integer mortgstate_;

然後使用codehandler工具類獲取list並傳到頁面

最後頁面使用

$("#mortgstate_").combobox(,

valuefield : 'codeview',

textfield : 'nameview'

});其中codeview和nameview是實體code裡面的常用變數

hexo 靜態頁面生成後頁面打不開的問題

我這裡的原因是4000埠被占用了 1 要安裝node和git 2 別忘了安裝hexo server 3 跟著官方安裝教程走完,到最後一步,開啟瀏覽器http localhost 4000卻發現瀏覽器一直在載入中,頁面不出現。我又重新安裝一遍之後還是如此。後來我用命令 hexo server p 30...

頁面滾動動態載入資料,頁面下拉自動載入內容

window scroll function 解析 判斷滾動條到底部,需要用到dom的三個屬性值,即scrolltop clientheight scrollheight。scrolltop為滾動條在y軸上的滾動距離。clientheight為內容可視區域的高度。scrollheight為內容可視區...

React 頁面載入後自動執行onClick事件

1 styles.delbtn styles.delfirst onclick 刪除 onremove index this.state console.log placetime,index placetime.splice index,1 this.setstate 刪除按鈕繫結的onremov...