简体   繁体   English

有场景和无场景的Samsung Smart TV应用之间的区别?

[英]Difference between Samsung Smart TV apps with scenes and without?

Just a quick question. 只是一个简单的问题。 I'm using Samsung Smart TV SDK 5.1 and there are few JavaScript app templates. 我正在使用Samsung Smart TV SDK 5.1,并且JavaScript应用模板很少。 Cannot figure out why the template that uses scenes has this in index.html 无法弄清楚为什么使用场景的模板在index.html中具有此功能

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Title</title>
        <script type="text/javascript" language="javascript" src="$MANAGER_WIDGET/Common/af/2.0.0/loader.js"></script>
    </head>
    <body>
    </body>
</html>

And the other one (without scenes) has this: 另一个(无场景)具有以下功能:

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Title</title>

        <!-- TODO : Common API -->
        <script type="text/javascript" language="javascript" src="$MANAGER_WIDGET/Common/API/Widget.js"></script>
        <script type="text/javascript" language="javascript" src="$MANAGER_WIDGET/Common/API/TVKeyValue.js"></script>       

        <!-- TODO : Javascript code -->
        <script language="javascript" type="text/javascript" src="app/javascript/Main.js"></script>

        <!-- TODO : Style sheets code -->
        <link rel="stylesheet" href="app/stylesheets/Main.css" type="text/css">

        <!-- TODO: Plugins -->

    </head>

Thanks. 谢谢。

Scenes template includes Samsung's Framework loader. 场景模板包括Samsung的Framework加载器。

Other template don't, and instead include couple platform API scripts. 其他模板则没有,而是包括一些平台API脚本。

You should really read developer guide http://www.samsungdforum.com/Guide/?FolderName=art00114&FileName=index.html 您应该真正阅读开发人员指南http://www.samsungdforum.com/Guide/?FolderName=art00114&FileName=index.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM