Code Monkey home page Code Monkey logo

zltools's Introduction

这是啥

一款轻量级JavaScript工具集。

能干啥

  • params —— 请求参数处理
  • Object.extend —— 对象拷贝
  • Object.getVal —— 多级对象属性获取
  • Object.setVal —— 多级对象属性赋值
  • Object.encodeEntity —— 字符实体编码
  • Object.decodeEntity —— 字符实体解码
  • Math.round2 —— 小数四舍五入
  • String.prototype.replaceAll —— 字符串替换所有 (引用自网络)
  • ZLTools.prototype.serializeObject —— 表单序列化
  • ZLTools.prototype.anchor —— 锚点绑定
  • ZLTools.prototype.boxCut —— 多行文字截断

怎么用

引入JS:

<!DOCTYPE HTML>
<html>
    <head>
        <title>ZLTools by LangZhai(智能小菜菜)</title>
    </head>
    <body>
        <!--为了使页面加载更快,最好将JS放置在<body>的末尾-->
        <script src="zltools.min.js"></script>
    </body>
</html>

zltools's People

Contributors

langzhai avatar

Watchers

James Cloos avatar  avatar

Forkers

bonomali

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.