【零基础学会uniapp系列】8、 静态资源的引用

8、 静态资源的引用, 通用js的引用,npm包的使用

静态资源,指的是程序中用到的图片、图标、字体等内容,这些内容应该存储于:static文件夹下

可直接在代码中进行引用:

例如:我们在前面tabbar的课程中也有介绍过引用static下面的图片文件。

"tabBar": {
        "color": "#8A8A8A",
        "selectedColor": "#0081ff",
        "borderStyle": "#EEEEEE",
        "backgroundColor": "#F8F8F8",
        "list": [ {
                "pagePath": "pages/index/index",
                "iconPath": "static/index.png",
                "selectedIconPath": "static/index_select.png",
                "text": "概况"
            },
            {
                "pagePath": "pages/user/user",
                "iconPath": "static/user.png",
                "selectedIconPath": "static/user_select.png",
                "text": "用户"
      

你可能感兴趣的:(uni,-,app,vue.js,前端,javascript)