Front page How to click the slide Switch button to change the database status

Source: Internet
Author: User
Front page How to click the slide Switch button to change the database status
Developed with thinkphp.
Now the front button is ready to click, backstage how to connect
The new person to ask for advice, trouble everybody big say detailed point, thank you

------to solve the idea----------------------
With jquery Ajax, like $.ajax,$.post ...
This is a lot of examples, online search, only to help you here
------to solve the idea----------------------
Click the button to get the state of the button and pass Ajax to the background
------to solve the idea----------------------
Execute AJAX after clicking
------to solve the idea----------------------
Asynchronous request Processing via JS
Http://www.w3school.com.cn/jquery/ajax_ajax.asp

Server-side processing logic
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.