Code Monkey home page Code Monkey logo

Comments (5)

fa-ge avatar fa-ge commented on July 22, 2024

可以。跟你用什么框架没有关系。调用方式看readme.md说明

from nativeshare.

Helongzhou avatar Helongzhou commented on July 22, 2024

作者你好,因为angular2是使用typescript编译的,好像没办法直接使用js文件,我尝试在index.html引入NativeShare.js,然后在component.ts里面使用会报错,不知道您有在angular2的项目里使用过吗?可以分享一下您的使用经验吗?

from nativeshare.

fa-ge avatar fa-ge commented on July 22, 2024

该插件是兼容amd,commonjs,ES6模块引入的机制的

from nativeshare.

Helongzhou avatar Helongzhou commented on July 22, 2024

目前我是按demo在index.html引入,在script标签里直接调用js接口,能实现分享功能,我再去了解一下‘amd,commonjs,ES6模块引入的机制‘,看怎么改成合理的引入,谢谢。

from nativeshare.

fa-ge avatar fa-ge commented on July 22, 2024

一样的啊。你ts怎么引其他模块,你就这么引这个模块啊

from nativeshare.

Related Issues (20)

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.