我如何知道一个lib是服务器端,客户端还是两者? [英] How do I know if a lib is server side, client side or both?

查看:90
本文介绍了我如何知道一个lib是服务器端,客户端还是两者?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

dart:html是客户端库,而dart:io是服务器端库,因为这是显而易见的...但是一个有趣的lib从http://pub.dartlang.org/packages ?服务器端,客户端,两者?我怎么知道肯定?

解决方案

希望图书馆记录是否依赖于 dart:html dart:io 。如果没有,唯一真正的方式是尝试。


dart:html is a client side library, whereas dart:io is a server side library because this is obvious... but what about a funky lib get from http://pub.dartlang.org/packages ? Server side, client side, both ? How do I know for sure ?

解决方案

Hopefully the library documents whether it depends on dart:html or dart:io. If not, the only real way to know is to try it.

这篇关于我如何知道一个lib是服务器端,客户端还是两者?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆