博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
How to use your own jQuery library in YII?
阅读量:7121 次
发布时间:2019-06-28

本文共 612 字,大约阅读时间需要 2 分钟。

How to use your own jQuery library in YII?

We can use the following line to load Yii jQuery, but it's not always latest version of jQuery.  Sometime we need to customize it.

Yii::app()->clientScript->registerCoreScript('jquery');

 

 So add the following to config/main.php 'components' part.

'clientScript'=>array(    'packages'=>array(        'jquery'=>array(            'baseUrl'=>'/js/',  // we can also use URL here.             'js'=>array('jquery-1.8.0.min.js'),            'coreScriptPosition'=>CClientScript::POS_HEAD        ),    ),),

 Done.

转载于:https://www.cnblogs.com/mztest/archive/2012/11/10/2764027.html

你可能感兴趣的文章
could not be installed at this time
查看>>
随机函数(Pascal入门)
查看>>
【NLP】蓦然回首:谈谈学习模型的评估系列文章(一)
查看>>
Java传值和传址
查看>>
两种常用的启动和关闭MySQL服务
查看>>
C# 事件
查看>>
一场改变你投资生涯的讨论:职业德州扑克手看交易
查看>>
IDEA 设置忽略那些文件不提交到SVN服务器
查看>>
HTTP的长连接和短连接
查看>>
ConcurrentHashMap并不是绝对线程安全的
查看>>
Oracle Instance
查看>>
使用网络监视器(IRSI)捕捉和分析协议数据包
查看>>
【机房重构】总结
查看>>
Android从无知到有知——NO.6
查看>>
自己写的php curl库实现整站克隆
查看>>
Combination Sum III -- leetcode
查看>>
机器学习算法中的过拟合与欠拟合(转载)
查看>>
机器学习算法实践:决策树 (Decision Tree)(转载)
查看>>
slack 团队协作平台
查看>>
【C#】:浅谈反射机制 【转】
查看>>