& amp# 36(function()& amp;# 36(“textarea【name = phone _ about】“)。keyup(function(){?& amp#36;(“#show”)。文本(& amp#36;(這個)。val()。長度);?});?})
當然,除此之外,還有另壹種適用於某些計算機的代碼:
& amp#36;(文檔)。ready(function(){ & amp;#36;(“#phone_about“)。keyup(function(){ & amp;#36;(“#show”)。html(& amp;#36;(這個)。val()。長度);?});});& lttextarea id =“phone _ about“name =“phone _ about“& gt;& lt/textarea & gt;& ltdiv id =“show“style =“display:inline;”& gt0 & lt/div & gt;
選擇哪種方法時,應根據情況決定。
介紹相關的js和css。表格的Html。Js,ordering:false(默認為true),禁用數據表排序功能。相比之下,從圖中可以看出,當排序被禁用時,排序的箭頭消失了。排序功能被部分禁用,第二列的排序功能被禁用。Js如下。(默認的排序主開關是打開的,因此沒有在js中設置)。看效果,第二列的箭頭沒了。