![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javaScript
Osiris_Syou
没有什么不可以
展开
-
滚动条滚动到指定name的锚
$.extend({ osiris : { scrollToAnchor : function(name){ if(name){ location.href="#" + name; }else{ alert("name not found!"); } } } }); // 用法 $("#btn").click(func原创 2012-03-15 12:32:52 · 588 阅读 · 0 评论 -
入力できる文字数チェック
// 入力できる文字数チェック // string : 入力した文字、maxLength : 入力できる文字最大数 function checkLen(string, maxLength){ if(!string || !string.length){return true;} var a = 0; for (i = 0; i < string.length; i++) {原创 2012-03-15 09:14:32 · 945 阅读 · 0 评论 -
冻结表格(tablefix)
/* * jQuery TableFix plugin ver 1.0.0 * Copyright (c) 2010 Otchy * This source file is subject to the MIT license. * http://www.otchy.net */ (function($){ $.fn.tablefix = function(options转载 2012-01-30 09:37:42 · 1755 阅读 · 0 评论 -
javascriptでスクロール付きの表を生成する
IE以外では正常に表示されません。转载 2011-12-28 12:13:24 · 867 阅读 · 0 评论 -
テキストボックスをフォーカスに設定する
// テキストボックスをフォーカスに設定する。 // 使い方:$(selector).setTextBoxFocus(); // 例:$("#textBox1").setTextBoxFocus(); // お知らせ:「selector」はテキストボックス限定です。 $.fn.setTextBoxFocus = function(){ if($(this).is("input") &原创 2012-03-15 09:16:15 · 574 阅读 · 0 评论