码迷,mamicode.com
首页 >  
搜索关键字:in use    ( 28727个结果
seajs模块路径解析 简单总结
seajs模块路径解析最近在试着用seajs + grunt改造现有项目, 遇到的最大的问题就是seajs命名与调用, 简单总结一下。模块调用seajs中调用模块有两种方式,seajs.use(ID) 、 require(ID)。ID命名完整绝对路径 例如 "http://example.com/t...
分类:Web程序   时间:2014-06-27 18:27:51    阅读次数:255
Hibernate 带参数查询的两种方式
1、使用?通配符public User validate(String userName, String password) { String hql = "from User u where u.userName = ? and u.password = ?"; Use...
分类:系统相关   时间:2014-06-27 17:51:35    阅读次数:395
设置MySQL root的密码
在my.ini的[mysqld]字段加入:skip-grant-tables重启mysql服务,这时的mysql不需要密码即可登录数据库然后进入mysql123mysql>use mysql;mysql>update user set password=password('新密码') WHERE U...
分类:数据库   时间:2014-06-26 15:56:38    阅读次数:224
sql分级查询
1 USE [zxerp] 2 GO 3 /****** Object: StoredProcedure [dbo].[Pro_GrossProfitCount] Script Date: 06/26/2014 08:48:10 ******/ 4 SET ANSI_NULLS O...
分类:数据库   时间:2014-06-26 12:54:25    阅读次数:558
sql SELECT时的with(nolock)选项说明
I used to see my senior developers use WITH (NOLOCK) when querying in SQL Server and wonder why they use. Now i explored it and found thatit's useful ...
分类:数据库   时间:2014-06-26 12:51:12    阅读次数:265
JavaScript Patterns 5.4 Module Pattern
This post introduces how to use the module pattern to limit the access scope of the methods of object or constructor in the module.
分类:编程语言   时间:2014-06-26 12:19:06    阅读次数:231
empty(trim($str))报错原因
最近写程序的时候发现一个这样的问题,一个if判断如下:[php]if (!empty(trim($ch_url))) { ...}[/php]执行程序报出如下错误:[code]Fatal error: Can't use function return value in write context ...
分类:其他好文   时间:2014-06-26 11:15:31    阅读次数:195
控制系统音量,自定义MPVolumeView
最近有一个需求,就是控制系统的音量,我们都知道原理在mediaPlayer.framework框架下,有方法 // The current volume of playing music, in the range of 0.0 to 1.0. // This property is deprecated -- use MPVolumeView for volume control instea...
分类:其他好文   时间:2014-06-26 10:44:33    阅读次数:324
解决QT:forward declaration of 'struct Ui::xxx';invalid use of incomplete struct "Ui::Widget" 等莫名奇妙错误
解决QT:forward declaration of 'struct Ui::xxx';invalid use of incomplete struct "Ui::Widget" 等莫名奇妙错误...
分类:其他好文   时间:2014-06-26 08:14:03    阅读次数:260
LeetCode: Clone Graph [133]
【题目】 Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ's undirected graph serialization: Nodes are labeled uniquely. We use # as a separator for each node, and , as a separator for node label and each ne...
分类:其他好文   时间:2014-06-26 06:48:16    阅读次数:285
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!