谁一开始就是大神?

assets如何判断IE[2.0]

public $js = [
        'static/global/plugins/jquery.min.js',
        'static/global/plugins/bootstrap/js/bootstrap.min.js',
        'static/global/plugins/js.cookie.min.js',
        'static/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js',
        'static/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js',
        'static/global/plugins/jquery.blockui.min.js',
        'static/global/plugins/uniform/jquery.uniform.min.js',
        'static/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js',
        'static/global/plugins/moment.min.js',
        'static/global/plugins/bootstrap-daterangepicker/daterangepicker.min.js',
        'static/global/plugins/morris/morris.min.js',
        'static/global/plugins/morris/raphael-min.js',
        'static/global/plugins/counterup/jquery.waypoints.min.js',
        'static/global/plugins/counterup/jquery.counterup.min.js',
        'static/global/plugins/amcharts/amcharts/amcharts.js',
        'static/global/plugins/amcharts/amcharts/serial.js',
        'static/global/plugins/amcharts/amcharts/pie.js',
        'static/global/plugins/amcharts/amcharts/radar.js',
        'static/global/plugins/amcharts/amcharts/themes/light.js',
        'static/global/plugins/amcharts/amcharts/themes/patterns.js',
        'static/global/plugins/amcharts/amcharts/themes/chalk.js',
        'static/global/plugins/amcharts/ammap/ammap.js',
        'static/global/plugins/amcharts/ammap/maps/js/worldLow.js',
        'static/global/plugins/amcharts/amstockcharts/amstock.js',
        'static/global/plugins/fullcalendar/fullcalendar.min.js',
        'static/global/plugins/flot/jquery.flot.min.js',
        'static/global/plugins/flot/jquery.flot.resize.min.js',
        'static/global/plugins/flot/jquery.flot.categories.min.js',
        'static/global/plugins/jquery-easypiechart/jquery.easypiechart.min.js',
        'static/global/plugins/jquery.sparkline.min.js',
        'static/global/plugins/jqvmap/jqvmap/jquery.vmap.js',
        'static/global/plugins/jqvmap/jqvmap/maps/jquery.vmap.russia.js',
        'static/global/plugins/jqvmap/jqvmap/maps/jquery.vmap.world.js',
        'static/global/plugins/jqvmap/jqvmap/maps/jquery.vmap.europe.js',
        'static/global/plugins/jqvmap/jqvmap/maps/jquery.vmap.germany.js',
        'static/global/plugins/jqvmap/jqvmap/maps/jquery.vmap.usa.js',
        'static/global/plugins/jqvmap/jqvmap/data/jquery.vmap.sampledata.js',
        'static/global/scripts/app.min.js',
        'static/pages/scripts/dashboard.min.js',
        'static/layouts/layout4/scripts/layout.min.js',
        'static/layouts/layout4/scripts/demo.min.js',
        'static/layouts/global/scripts/quick-sidebar.min.js',
];

现在是这样的 请问如何输入这样的
QQ图片20160414144840.png

请问这个
public $jsOptions = ['condition' => 'lte IE9']; 应该加在哪里?
我加在了AppAsset.php里面后就变成这样了

QQ截图20160414151502.png

不能单独选择两个JS文件吗?

针对ie9的单独建一个资源包,至少我是这样解决 的
http://www.yiichina.com/doc/guide/2.0/structure-assets

赞(0) 打赏
未经允许不得转载:菜鸟之家 » assets如何判断IE[2.0]

评论 抢沙发

登录

找回密码

注册