Giter Club home page Giter Club logo

estimateor's Introduction

image

1、项目地址 https://github.com/dream-num/Luckysheet

2、下载所有的文件

<script src="https://cdn.jsdelivr.net/npm/luckysheet@latest/dist/plugins/js/plugin.js"></script> <script src="https://cdn.jsdelivr.net/npm/luckysheet@latest/dist/luckysheet.umd.js"></script>

替换成

<script src="./plugin.js"></script> <script src="./luckysheet.umd.js"></script>

3、新建一个容器

4、加载代码到容器

<script> $(function () { //Configuration item var options = { container: 'luckysheet' //luckysheet is the container id } luckysheet.create(options) }) </script>

5、配置一下哈 https://dream-num.github.io/LuckysheetDocs/guide/config.html#basic-structure

// Configuration item const options = { container:'luckysheet', // set the id of the DOM container title:'Luckysheet Demo', // set the name of the table lang:'zh' // set language

 // More other settings...

}

// Initialize the table luckysheet.create(options)

6、中文文档

7、尝试加载数据 远端加载数据是loadUrl还是updateUrl? A:loadUrl。配置了loadUrl,Luckysheet会通过ajax请求整个表格数据,而updateUrl会作为协同编辑实时保存的接口地址。 注意:初始化数据需要配置loadUrl参数,而协同编辑则在配置loadUrl、updateUrl和allowUpdate四个参数才能生效。

8、保存数据 Luckysheet如何把表格里的数据保存到数据库?有没有服务端存储和协作的解决方案? A:有两个方案:

一是表格操作完成后,使用luckysheet.getAllSheets()方法获取到全部的工作表数据,全部发送到后台存储。 二是开启协同编辑功能,实时传输数据给后端。 具体的操作步骤参考这篇文章:Luckysheet如何把表格里的数据保存到数据库(opens new window)

=============

1、可视化代码编辑器的地址 https://github.com/jagenjo/litegraph.js

2、下载两个文件 downloading the build/litegraph.js and css/litegraph.css version from this repository.

3、引用 <script type="text/javascript" src="litegraph.js"></script>

4、锚点

estimateor's People

Contributors

lemonhall 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.