search

Home  >  Q&A  >  body text

android - 目前哪个开发语言能跨平台开发原生app

就是一次开发后可以在安卓,ios及pc上运行的?

续问1?
如果考虑上手快,小项目(网站移动版相似),用哪种开发又快又好呢(主要考虑快,一次代码到处发布)???

续问2?
如果在以上基础还考虑未来的升级等的话,考虑哪 种开发?

PHP中文网PHP中文网2771 days ago1983

reply all(23)I'll reply

  • 阿神

    阿神2017-04-18 09:09:02

    As for language, the author should already have the answer in his mind, yes. It’s JS.
    But react is learned once and written many times
    ionic is written once and executed everywhere.

    ionic2 has introduced native modules, and many people are already using them. However, it will not officially explode until the official version of ng2 is released.
    Now react has exploded...
    But ionic/angular and react are reaching the same goal by different paths. They are all the development trends of the front-end in the future. If you go on this road, you will follow the trend, and you will improve both technically and personally.

    I have tried several domestic frameworks, but they feel like a waste of time

    reply
    0
  • 阿神

    阿神2017-04-18 09:09:02

    I recommend Deviceone. The principle of Deviceone is closest to ReactNative. Deviceone’s app runs on the mobile phone, and all the interfaces you see are pure native UIs. For example, the button label corresponds to the UIButton class on iOS, and the Button class on android.

    What’s stronger than react native is that it truly writes once, run anyway, while react native is learn once, write anyway. react native is not truly cross-platform.

    In addition, compared to react native, deviceone is much more mature in application and supports almost 100 cross-platform components. Officials and some individual developers are still expanding this component library.

    The app developed by device one is compiled from a small native core and some native components selected by the developer from the component library.

    reply
    0
  • 高洛峰

    高洛峰2017-04-18 09:09:02

    Try DeviceOne. It is both cross-platform and native. It supports android, ios, windowsphone and windows pc. Our company is using this for projects.

    reply
    0
  • PHPz

    PHPz2017-04-18 09:09:02

    DeviceOne is still possible, it is all designed with a graphical interface and drag-and-drop development. Easy to get started. You can try it. Our App is online. You can search "Natto" in AppStore.

    reply
    0
  • 高洛峰

    高洛峰2017-04-18 09:09:02

    After writing it once, it can run on computers and mobile phones without modification. I only think of websites with B/S architecture.
    So I also thought of an application development idea, which is to move the B/S architecture to the client.
    So I cross-compiled the ARM Linux version of PHP on Ubuntu (for Android, Raspbian, etc.), packaged PHPDroid, the APK package is only 5.7MB, and developed applications based on WebView + PHP's built-in HTTP server and SQLite database. The PHP script was written once Finally, there is no problem running on PC and Android, and code reuse can be achieved.

    reply
    0
  • 阿神

    阿神2017-04-18 09:09:02

    It’s cross-platform and native, so, my answer is no!

    reply
    0
  • ringa_lee

    ringa_lee2017-04-18 09:09:02

    React Native?

    reply
    0
  • 阿神

    阿神2017-04-18 09:09:02

    JavaScript’s cross-platform performance is pretty good
    React Native is indeed very popular now

    reply
    0
  • 阿神

    阿神2017-04-18 09:09:02

    react needs to be written multiple times
    ionic, it can only appear on android and ios

    reply
    0
  • 高洛峰

    高洛峰2017-04-18 09:09:02

    Crooked building, Qt

    reply
    0
  • Cancelreply