GithubHelp home page GithubHelp logo

code-segment-js's Introduction

code-segment-js

代码段-javascript

异步GET请求

<!-- 一般GET -->
<a href="">点击</a>
<!-- 异步GET -->
<a class="ajax-get" href="">点击</a>

异步POST-FORM

<!-- submit按钮添加target-form自定义属性 -->
<!-- target-form自定义属性值对应form的类名 -->
<form method="post" class="form">
    <input type="submit" class="ajax-post" value="提交" target-form="form"/>
</form>

数据List全选

<!-- .confirm操作确认 -->
<!-- url自定义属性 提交的服务地址 -->
<!-- target-form自定义属性值对应列表项类名 -->
<button class="btn ajax-post confirm" url="http://localhost/" target-form="ids">批量操作</button>
<!-- .check-all全选按钮类名 -->
<input class="check-all" type="checkbox">
<!-- .ids类 全选列表项 -->
<input class="ids" type="checkbox" name="id[]" value="8">
<input class="ids" type="checkbox" name="id[]" value="9">

code-segment-js's People

Contributors

cek2011 avatar

Watchers

 avatar  avatar

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.