Giter Site home page Giter Site logo

Comments (6)

ColinCollins avatar ColinCollins commented on July 20, 2024

你这个传送门太瞥了,我进不去啊。。。。

from example-projects.

pandamicro avatar pandamicro commented on July 20, 2024

没事,你不用进去,做就对了

from example-projects.

ColinCollins avatar ColinCollins commented on July 20, 2024

cc.sys:
isNative: {
不包括: 微信小游戏(平台),微信,Web_DeskTop, Web_Mobile(手机浏览器), exe
包括: android,ios , 模拟器
}
isMobile:{
不包括:微信小游戏,Web_DeskTop,exe,模拟器
包括: 微信,手机浏览器,android,ios
}
isBrowser:{
只有: Desktop_Browser, Web_Mobile_Browser
}

from example-projects.

ColinCollins avatar ColinCollins commented on July 20, 2024

修改 Tips 代码
AnySDK 部分的场景我认为应该保留 SuspensionTips
针对继承 BaseAnySDKExample 内容脚本进行修改,删除 hasSupport() 判断就 ok 了

from example-projects.

ColinCollins avatar ColinCollins commented on July 20, 2024

http://forum.cocos.com/t/iphonex-bug/65412 Canvas 适配模式
http://forum.cocos.com/t/2-0-1-dragonbones/65402 动态加载 DragonBones

from example-projects.

ColinCollins avatar ColinCollins commented on July 20, 2024

sys.platform 平台判断:
image
isNative = CC_JSB > Android | IOS | IPAD | WP8 | TIZEN | BLACKBERRY
isBrowser = window(Object)
判断条件优先级按照上图顺序依次往下。
else 中判断内容为:
image
判断是否是 mobile ,并且分辨浏览器类型

from example-projects.

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.