Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何在smart banner上添加评级?_Javascript_Jquery_Html_Css_Banner - Fatal编程技术网

Javascript 如何在smart banner上添加评级?

Javascript 如何在smart banner上添加评级?,javascript,jquery,html,css,banner,Javascript,Jquery,Html,Css,Banner,我从这里获得智能横幅: 代码如下所示: <!doctype html> <title>Smartbanner test</title> <meta name="apple-itunes-app" content="app-id=502838820"> <meta name="google-play-app" content="app-id=ru.hh.android"> <meta name="msApplication-ID"

我从这里获得智能横幅:

代码如下所示:

<!doctype html>
<title>Smartbanner test</title>
<meta name="apple-itunes-app" content="app-id=502838820">
<meta name="google-play-app" content="app-id=ru.hh.android">
<meta name="msApplication-ID" content="microsoft.build.App"/>
<meta name="msApplication-PackageFamilyName" content="microsoft.build_8wekyb3d8bbwe"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="../dist/smart-app-banner.css">
<link rel="apple-touch-icon" href="icon.png">
<link rel="android-touch-icon" href="icon.png" />
<link rel="windows-touch-icon" href="icon.png" />
<style type="text/css">
    * {
        box-sizing: border-box;
    }
</style>
<script type="text/javascript" src="../dist/smart-app-banner.js"></script>

<script>
    banner = undefined;
    function run(force) {
        var n = document.querySelector('.smartbanner');
        if (n) {
            n.parentNode.removeChild(n);
        }
        new SmartBanner({
                daysHidden: 15, // days to hide banner after close button is clicked (defaults to 15)
                daysReminder: 90, // days to hide banner after "VIEW" button is clicked (defaults to 90)
                appStoreLanguage: 'us', // language code for the App Store (defaults to user's browser language)
                title: 'KudaGo',
                author: 'KudaGo Inc',
                button: 'OPEN',
                force: force
        });
    };
</script>
<body>
    <div>
        <a href="#" onclick="run('android')">android</a>
        <a href="#" onclick="run('ios')">ios</a>
        <a href="#" onclick="run('windows')">windows</a>
    </div>
</body>

Smartbanner测试
* {
框大小:边框框;
}
横幅=未定义;
功能运行(强制){
var n=document.querySelector('.smartbanner');
如果(n){
n、 parentNode.removeChild(n);
}
新SmartBanner({
daysHidden:15,//单击关闭按钮后隐藏横幅的天数(默认为15)
daysReminder:90,//单击“查看”按钮后隐藏横幅的天数(默认为90)
appStoreLanguage:'us',//应用商店的语言代码(默认为用户的浏览器语言)
标题:“库达戈”,
作者:“库达戈公司”,
按钮:“打开”,
部队:部队
});
};
结果如下:

<!doctype html>
<title>Smartbanner test</title>
<meta name="apple-itunes-app" content="app-id=502838820">
<meta name="google-play-app" content="app-id=ru.hh.android">
<meta name="msApplication-ID" content="microsoft.build.App"/>
<meta name="msApplication-PackageFamilyName" content="microsoft.build_8wekyb3d8bbwe"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="../dist/smart-app-banner.css">
<link rel="apple-touch-icon" href="icon.png">
<link rel="android-touch-icon" href="icon.png" />
<link rel="windows-touch-icon" href="icon.png" />
<style type="text/css">
    * {
        box-sizing: border-box;
    }
</style>
<script type="text/javascript" src="../dist/smart-app-banner.js"></script>

<script>
    banner = undefined;
    function run(force) {
        var n = document.querySelector('.smartbanner');
        if (n) {
            n.parentNode.removeChild(n);
        }
        new SmartBanner({
                daysHidden: 15, // days to hide banner after close button is clicked (defaults to 15)
                daysReminder: 90, // days to hide banner after "VIEW" button is clicked (defaults to 90)
                appStoreLanguage: 'us', // language code for the App Store (defaults to user's browser language)
                title: 'KudaGo',
                author: 'KudaGo Inc',
                button: 'OPEN',
                force: force
        });
    };
</script>
<body>
    <div>
        <a href="#" onclick="run('android')">android</a>
        <a href="#" onclick="run('ios')">ios</a>
        <a href="#" onclick="run('windows')">windows</a>
    </div>
</body>

我想添加如下评级:

<!doctype html>
<title>Smartbanner test</title>
<meta name="apple-itunes-app" content="app-id=502838820">
<meta name="google-play-app" content="app-id=ru.hh.android">
<meta name="msApplication-ID" content="microsoft.build.App"/>
<meta name="msApplication-PackageFamilyName" content="microsoft.build_8wekyb3d8bbwe"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="../dist/smart-app-banner.css">
<link rel="apple-touch-icon" href="icon.png">
<link rel="android-touch-icon" href="icon.png" />
<link rel="windows-touch-icon" href="icon.png" />
<style type="text/css">
    * {
        box-sizing: border-box;
    }
</style>
<script type="text/javascript" src="../dist/smart-app-banner.js"></script>

<script>
    banner = undefined;
    function run(force) {
        var n = document.querySelector('.smartbanner');
        if (n) {
            n.parentNode.removeChild(n);
        }
        new SmartBanner({
                daysHidden: 15, // days to hide banner after close button is clicked (defaults to 15)
                daysReminder: 90, // days to hide banner after "VIEW" button is clicked (defaults to 90)
                appStoreLanguage: 'us', // language code for the App Store (defaults to user's browser language)
                title: 'KudaGo',
                author: 'KudaGo Inc',
                button: 'OPEN',
                force: force
        });
    };
</script>
<body>
    <div>
        <a href="#" onclick="run('android')">android</a>
        <a href="#" onclick="run('ios')">ios</a>
        <a href="#" onclick="run('windows')">windows</a>
    </div>
</body>

我读了文档,但没找到


如何在智能横幅上添加评级?

@Sfili\u 81我发现:。似乎更多simple@Sfili_81有更具体的参考资料吗?我在执行上有困难it@Sfili_81我发现这个:。似乎更多simple@Sfili_81有更具体的参考资料吗?我在实现它时遇到了困难