Giter Site home page Giter Site logo

carsonslovoka / gas-lib Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 48 KB

gas相關腳本, 目前集中於寫spreadsheet的函數

License: MIT License

TypeScript 81.91% HTML 18.09%
add-in add-ons chinese-translation custom-functions spreadsheets taiwan typescript

gas-lib's Introduction

gas-lib

gas相關腳本, 目前集中於寫spreadsheet的函數

Demo & Usage

以下連結提供已經實作的相關函數使用方法

https://docs.google.com/spreadsheets/d/1v7oqH6myGrI6yLpDxC3e7kkveZyEuQr4G8TdZQGQE-8/

如果您想直接使用,可以直接複製該sheet,一樣也能在自己的sheet上使用那些函數

其中背景顏色有用黃色標示的儲存格表示公式,觀看那些儲存格即可。

TS小技巧

  • 善用//@ts-ignore: GAS中很多函數是來自於google所定義,這時候就可以用import的方式來載入該變數;另一種解法是將變數宣告成any,例如const Utilities: any
  • 使用console.error來進行測試: 因為某些函數用到了google所定義的函數,所以一定要在gas才能測試,可以把要測試的函數都寫在一個函數之中,再呼叫該函數即可,其中把非預期的項目用console.error,如果有執行到該內容,在console視窗即可發現錯誤,就能知道測試不過。

gas-lib's People

Contributors

carsonslovoka avatar

Watchers

 avatar  avatar  avatar

gas-lib's Issues

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.