Skip to content

willowj/github-collections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 

Repository files navigation

github-collections

collect to github repo use like-on-github modified from Idnan

_<CS BASE>

_<UI>

_<PY DOCS>

_<PC TOOLS>

_<PY NET>

_<BROWSER EXT DEV>

_<LIFESTYLE>

_<TUTORIAL>

_<CHROME EXTENSION>

_<PY FINANCE>

_<CLOUD STORAGE>

_<PYTHON ASYNC>

_<PY TOOLS>

_<PY ASYNC>

_<LINUX TOOLS>

_<DOCS>

_<PYTHON>

    • note: import hook ,lazy import
    • import sys
      import imp
       
      _lazy_modules = {}
       
      class LazyModule():
          def __init__(self, name):
              self.name = name
       
          def __getattr__(self, attr):
              path = _lazy_modules[self.name]
              f, pathname, desc = imp.find_module(self.name, path)
       
              lf = sys.meta_path.pop()
              imp.load_module(self.name, f, pathname, desc)
              sys.meta_path.append(lf)
       
              self.__dict__ = sys.modules[self.name].__dict__
              return self.__dict__[attr]
       
      class LazyFinder(object):
       
          def find_module(self, name, path):
              _lazy_modules[name] = path
              return self
       
          def load_module(self, name):
              return LazyModule(name)
       
      sys.meta_path.append(LazyFinder())

_<ONLINE COMPILE>

_<WINPC-TOOLS>

_<JQUERY>

    • note: test4444
    •     jQuery获取Select选择的Text和Value: 语法解释:

      1. $("#select_id").change(function(){//code...});   //为Select添加事件,当选择其中一项时触发
      2. var checkText=$("#select_id").find("option:selected").text();  //获取Select选择的Text
      3. var checkValue=$("#select_id").val();  //获取Select选择的Value
      4. var checkIndex=$("#select_id ").get(0).selectedIndex;  //获取Select选择的索引值
      5. var maxIndex=$("#select_id option:last").attr("index");  //获取Select最大的索引值 jQuery设置Select选择的 Text和Value:

_<COLLECT>

About

collections to github repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages