摘要:
1.select error: (2014, "Commands out of sync; you can't run this command now")为什么会报这个错误呢?是因为我先执行了一个insert接着就执行select,而且在insert的sql语句中使用了commit;这个就是出错的根源。只要去掉insert的sql语句中的commit;并将commit;换到select的sql语句中就好了即可,原理请见:http://blog.xupeng.me/2012/03/13/mysql-python-commands-out-of-sync/ 阅读全文
摘要:
A.http://www.cnblogs.com/vilyLei/archive/2012/03/03/2378182.htmlB.4. 如果js的一个类中, 没有用定义变量的时候, 忘记写 var 例如: function MovieClip(){ var totFrames = 0; name = "mc"; }; 那么这个类中的 name 在创建多个实例的时候就会变为全局变量,这时候就有问题了。5.一个 js对象 this 关键字 的使用注意: js对象没有 this 硬性绑定, 所以对于一个方法(函数)而言, 其隶属余谁,其内部所使用的this 就指向谁。 不会唯一 阅读全文
摘要:
1.创建模拟器分配的内存过大,会导致模拟器运行时报如下错误:Starting emulator for AVD 'aov'Failed to allocate memory: 8This application has requested the Runtime to terminate it in an unusual way.Please contact the application's support team for more information.于是将 在 Edit Android Virtual Device(AVD)面板中将Memory Option 阅读全文