MVC ling mysql 函数返回结果集集用什么接收比较好

MVC中用 BundleCollection 压缩JS与CSS时 路径的相关问题 - ling
MVC中有个专门提供JS和CSS压缩的类,BundleCollection,其实这个类也可以在asp.net中用, 关于 BundleCollection类的详细推荐个地址:http://www.cnblogs.com/lifeil/archive//2954071.html 我这里只是记录下使用过程中遇到的两个小问题 1.css被压
MVC中有个专门提供JS和CSS压缩的类,BundleCollection,其实这个类也可以在asp.net中用,
关于BundleCollection类的详细推荐个地址:http://www.cnblogs.com/lifeil/archive//2954071.html
我这里只是记录下使用过程中遇到的两个小问题
1.css被压缩后,里面图片路径文件的问题
我们可以看到MVC中&BundleConfig这个类里,都是自动生成的好多需要压缩的JS和CSS
bundles.Add(new StyleBundle(&~/Content/Css&).Include(&~/Content/layout.css&, &~/Content/wysiwyg.css&));
view在头部这样写就可以导入 &~/Content/layout.css 和~/Content/wysiwyg.css的CSS了
@Styles.Render(&~/Content/Css&)
照上面方法,我继续在后面加了个CSS,就是站点的皮肤,注意蓝色位置,已经不在Content文件下级了
bundles.Add(new StyleBundle(&~/Content/Css&).Include(&~/Content/layout.css&,&~/Content/wysiwyg.css&, &~/Content/themes/blue/styles.css&));
这样在开发的时候没什么问题,因为在开发模式下CSS和JS是没有被压缩的,但是我把网站发布后就出问题了,
Content/themes/blue/styles.css 里图片都是这样写的&background: url(img/bg_navigation.png),有人会说,为什么不写 /Content/themes/blue/img/bg_navigation.png,如果在MVC用到了区域,这样写路径也会就会出问题
如何在不发布网站的情况下测试压缩CSS呢?在BundleConfig 类里加上
BundleTable.EnableOptimizations = true;
或修改Web.config
&compilation debug=&false& targetFramework=&4.0&&
看看压缩前后的CSS路径终于发现问题了
原来,我们写的&new StyleBundle(&~/Content/Css&) 会影响到压缩后的路径
解决办法:
对于皮肤的CSS,我们重写一个声明
bundles.Add(new StyleBundle(&~/Content/themes/blue/Css&).Include(&~/Content/themes/blue/styles.css&));
这样图片就能找到了
2.压缩javascript文件的是时候,如果文件名带有 .min居然不压缩,连文件都不导入,例如
bundles.Add(new ScriptBundle(&~/bundles/easyui&).Include(&~/Scripts/my/jquery.easyui.min.js&));
这样的文件在压缩后不会被导入,解决办法
改JS名字,去掉min 或 在view里写&@Scripts.Render(&~/Scripts/my/jquery.easyui.min.js&),这样就不会被压缩了
其实带min已经是被压缩了的,如果对这个文件进行压缩,运行里面相关方法会报错
写的有点乱,只是记录下
你最喜欢的Access denied | www.ruanyifeng.com used Cloudflare to restrict access
Please enable cookies.
What happened?
The owner of this website (www.ruanyifeng.com) has banned your access based on your browser's signature (b193cc-ua98).linq - 动态 - SegmentFault 思否温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
this.p ={ b:2,
c:[{id:'-2',name:'草稿箱',count:0},{id:'-3',name:'回收站',count:0},{id:"fks_",name:"地图相关",count:0},{id:"fks_",name:"MyBatis+iBatis",count:9},{id:"fks_",name:"EasyUI",count:1},{id:"fks_",name:"asp.net MemberShip",count:3},{id:"fks_",name:"Ling2Sql",count:2},{id:"fks_",name:"Ext.NET",count:19},{id:"fks_",name:"android开发",count:3},{id:"fks_",name:"淘宝API",count:5},{id:"fks_",name:"ASP",count:5},{id:"fks_",name:"MVC",count:5},{id:"fks_",name:"ado.net",count:14},{id:"fks_",name:"session",count:2},{id:"fks_",name:"JQuery资料",count:14},{id:"fks_",name:"java",count:4},{id:"fks_",name:"大型网站架构",count:11},{id:"fks_",name:"WEB开发名词解释",count:8},{id:"fks_",name:"二级域名、URL重写",count:14},{id:"fks_",name:"php",count:6},{id:"fks_",name:"http",count:4},{id:"fks_",name:"js",count:79},{id:"fks_",name:"站长学习",count:22},{id:"fks_",name:"sql",count:44},{id:"fks_",name:"asp.net",count:137},{id:"fks_",name:"div+css",count:25},{id:"fks_",name:"悄悄叙来",count:619},{id:"fks_",name:"默认分类",count:7}],
a:[{archDate:0,count:2},{archDate:0,count:1},{archDate:0,count:1},{archDate:0,count:1},{archDate:0,count:1},{archDate:0,count:2},{archDate:0,count:1},{archDate:0,count:1},{archDate:0,count:12},{archDate:0,count:2},{archDate:0,count:1},{archDate:0,count:3},{archDate:0,count:3},{archDate:0,count:12},{archDate:0,count:8},{archDate:0,count:1},{archDate:0,count:2},{archDate:0,count:2},{archDate:0,count:3},{archDate:0,count:1},{archDate:0,count:1},{archDate:0,count:1},{archDate:0,count:1},{archDate:0,count:7},{archDate:0,count:5},{archDate:0,count:1},{archDate:0,count:2},{archDate:0,count:8},{archDate:0,count:6},{archDate:0,count:4},{archDate:0,count:6},{archDate:0,count:5},{archDate:0,count:3},{archDate:0,count:3},{archDate:0,count:6},{archDate:0,count:6},{archDate:0,count:5},{archDate:0,count:5},{archDate:0,count:7},{archDate:0,count:9},{archDate:0,count:5},{archDate:0,count:34},{archDate:0,count:24},{archDate:0,count:15},{archDate:0,count:25},{archDate:0,count:46},{archDate:0,count:20},{archDate:0,count:32},{archDate:0,count:41},{archDate:0,count:51},{archDate:0,count:23},{archDate:0,count:35},{archDate:0,count:48},{archDate:0,count:49},{archDate:0,count:63},{archDate:0,count:47},{archDate:0,count:43},{archDate:0,count:33},{archDate:0,count:14},{archDate:0,count:17},{archDate:0,count:42},{archDate:0,count:19},{archDate:0,count:46},{archDate:0,count:76},{archDate:0,count:42},{archDate:0,count:6},{archDate:0,count:8},{archDate:0,count:8}],
bt:[{tagName:'男人',count:11},{tagName:'女人',count:9},{tagName:'cmd',count:8},{tagName:'一个人',count:8},{tagName:'net',count:8},{tagName:'asp',count:8},{tagName:'string',count:7},{tagName:'爱情',count:6},{tagName:'param',count:6},{tagName:'summary',count:6}],
t:['fks_','fks_','fks_','fks_','fks_'],
mset:'000',
{if defined('c')&&c.length>0}
{list c as x}
{if !!x&&x.id!='-1'&&x.id!='-2'&&x.id!='-3'}{/if}
{if defined('bt')&&bt.length>0}
{list bt as x}
{if bt.length>=5}
{if defined('a')&&a.length>0}
{list a as y}
·${y.year}年&&
{if !!y.arch&&y.arch.length>0}
{list y.arch as z}
{if !!z}{/if}
{if defined('taglist')&&taglist.length>0}
{list taglist as tag}
所有标签()
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}mybatis+springmvc调用存储过程返回结果集调用报错问题
[问题点数:100分,结帖人t]
mybatis+springmvc调用存储过程返回结果集调用报错问题
[问题点数:100分,结帖人t]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
匿名用户不能发表回复!|

我要回帖

更多关于 oracle函数返回结果集 的文章

 

随机推荐