首页 \ 问答 \ Jquery - 生涩的动画(Jquery - Jerky animation)

Jquery - 生涩的动画(Jquery - Jerky animation)

我有一个小动画在所有浏览器中运行有点不稳定。 有什么我做错了吗?

这是我的代码: http//jsfiddle.net/iltdev/nN6cT/2/


I have a little animation that's running a bit jerky in all browsers. Is there something I'm doing wrong?

Here's my code: http://jsfiddle.net/iltdev/nN6cT/2/


原文:https://stackoverflow.com/questions/7978181
更新时间:2023-06-20 22:06

最满意答案

编辑 :关于你得到的错误cannot find -lgw32c ,你只需要下载libgw32c ,这在你的分步指南的依赖列表中提到

=>开发者版!! (不是二进制文件,也不是源文件)

我也试着用mingw32编译

D:\tmp\ssl-1.15> python setup.py build -c mingw32
running build
running build_py
running build_ext
building 'ssl._ssl2' extension
writing build\temp.win32-2.5\Release\ssl\_ssl2.def
gcc.exe -mno-cygwin -shared -s build\temp.win32-2.5\Release\ssl\_ssl2.o build\temp.win32-2.5\Release\ssl\_ssl2.def -LC:\Utils\GnuWin32\lib -LD:\Python25\libs -LD:\Python25\PCBuild -lssl -lcrypto -lwsock32 -lgdi32 -lgw32c -lole32 -luuid -lpython25 -lmsvcr71 -o build\lib.win32-2.5\ssl\_ssl2.pyd -static
D:\tmp\ssl-1.15>

导入确定

D:\tmp\ssl-1.15\build\lib.win32-2.5> python
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
>>> dir(ssl)
['CERT_NONE', 'CERT_OPTIONAL', 'CERT_REQUIRED', 'DER_cert_to_PEM_cert', 'PEM_FOOTER', 'PEM_HEADER', 'PEM_cert_to_DER_cert', 'PROTOCOL_NOSSLv2', 'PROTOCOL_SSLv2', 'PROTOCOL_SSLv23', 'PROTOCOL_SSLv3', 'PROTOCOL_TLSv1', 'RAND_add', 'RAND_egd', 'RAND_status', 'SSLError', 'SSLSocket', 'SSL_ERROR_EOF', 'SSL_ERROR_INVALID_ERROR_CODE', 'SSL_ERROR_SSL', 'SSL_ERROR_SYSCALL', 'SSL_ERROR_WANT_CONNECT', 'SSL_ERROR_WANT_READ', 'SSL_ERROR_WANT_WRITE', 'SSL_ERROR_WANT_X509_LOOKUP', 'SSL_ERROR_ZERO_RETURN', '__builtins__', '__doc__', '__file__', '__name__', '__path__', '_fileobject', '_getnameinfo', '_ssl2', 'base64', 'cert_time_to_seconds', 'get_protocol_name', 'get_server_certificate', 'os', 'select', 'socket', 'sslwrap_simple', 'sys', 'wrap_socket']
>>>

更新 :第二个问题

我的新问题是:当我在其他目录上运行'python'时,如何成功导入它?

在我的例子中,我只做了python setup.py build -c mingw32 ,你需要使用它来安装它

python setup.py install

要么

只需将ssl文件夹从build\lib.win32-2.5D:\Python25\Lib\site-packages\


Edit: Regarding the error you got cannot find -lgw32c, you simply need to download libgw32c, which is mentioned in dependencies list on your step by step guide

=> developper Version!! (Not binaries, nor source ones)

I tried to compile with mingw32 too

D:\tmp\ssl-1.15> python setup.py build -c mingw32
running build
running build_py
running build_ext
building 'ssl._ssl2' extension
writing build\temp.win32-2.5\Release\ssl\_ssl2.def
gcc.exe -mno-cygwin -shared -s build\temp.win32-2.5\Release\ssl\_ssl2.o build\temp.win32-2.5\Release\ssl\_ssl2.def -LC:\Utils\GnuWin32\lib -LD:\Python25\libs -LD:\Python25\PCBuild -lssl -lcrypto -lwsock32 -lgdi32 -lgw32c -lole32 -luuid -lpython25 -lmsvcr71 -o build\lib.win32-2.5\ssl\_ssl2.pyd -static
D:\tmp\ssl-1.15>

Importing ok

D:\tmp\ssl-1.15\build\lib.win32-2.5> python
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
>>> dir(ssl)
['CERT_NONE', 'CERT_OPTIONAL', 'CERT_REQUIRED', 'DER_cert_to_PEM_cert', 'PEM_FOOTER', 'PEM_HEADER', 'PEM_cert_to_DER_cert', 'PROTOCOL_NOSSLv2', 'PROTOCOL_SSLv2', 'PROTOCOL_SSLv23', 'PROTOCOL_SSLv3', 'PROTOCOL_TLSv1', 'RAND_add', 'RAND_egd', 'RAND_status', 'SSLError', 'SSLSocket', 'SSL_ERROR_EOF', 'SSL_ERROR_INVALID_ERROR_CODE', 'SSL_ERROR_SSL', 'SSL_ERROR_SYSCALL', 'SSL_ERROR_WANT_CONNECT', 'SSL_ERROR_WANT_READ', 'SSL_ERROR_WANT_WRITE', 'SSL_ERROR_WANT_X509_LOOKUP', 'SSL_ERROR_ZERO_RETURN', '__builtins__', '__doc__', '__file__', '__name__', '__path__', '_fileobject', '_getnameinfo', '_ssl2', 'base64', 'cert_time_to_seconds', 'get_protocol_name', 'get_server_certificate', 'os', 'select', 'socket', 'sslwrap_simple', 'sys', 'wrap_socket']
>>>

Update: for the second question

my new problem is : how to import it successful when i run 'python' on other dirs?

In my example, I only did python setup.py build -c mingw32, you need to install it by using

python setup.py install

or

Just copy ssl folder from build\lib.win32-2.5 to D:\Python25\Lib\site-packages\

相关问答

更多
  • app.yaml没有skip_files:部分意味着你会选择默认值。 默认设置忽略以其开头的文件和目录. 。 添加您自己的skip_files:将覆盖默认行为。 这在配置文档的skip_files部分进行了描述。 Not having a skip_files: section in app.yaml means that you'll pick up the defaults. The defaults ignore files and directories that start with .. Add ...
  • 为了解决这个问题,我必须 openssl rsa -in mydomain.key -text > mydomain.key.pem 并执行此操作: App Engine:您选择的私钥似乎不是有效的 也就是说,删除-----BEGIN RSA PRIVATE KEY-----之上的文本-----BEGIN RSA PRIVATE KEY----- 然后GAE控制台接受未加密的PEM文件。 To fix this I had to openssl rsa -in mydomain.key -text > m ...
  • 编辑 :关于你得到的错误cannot find -lgw32c ,你只需要下载libgw32c ,这在你的分步指南的依赖列表中提到 OpenSSL的 libgw32c =>开发者版!! (不是二进制文件,也不是源文件) 我也试着用mingw32编译 D:\tmp\ssl-1.15> python setup.py build -c mingw32 running build running build_py running build_ext building 'ssl._ssl2' extension w ...
  • 这可能是StringListProperty的好机会。 设置成员资格是ListProperty的优势。 您需要提供一种更新和封送列表的方法,但它可以满足您的需求。 db.StringListProperty has = ['401k:T', 'health_in:F', 'has_childcare:T'] GQL Where子句 "WHERE has = '401k:T' and has = 'health_in:F'" ListProperties需要一些努力来了解它们的优势和应用。 GAE数据存储 ...
  • 答案迟了,但这里是您如何导入SSL库 在你的app.yaml ,添加这个 libraries: - name: ssl version: latest 这对我有效。 So I found a solution for this. I am posting this for anyone else who might run into the problem. Google App Engine dosent support some python modules with relies on C ba ...
  • http://code.google.com/appengine/docs/java/config/webxml.html#Secure_URLs表示, true 可以在带有* .appspot.com子域的appengine-web.xml文件中设置。 谷歌在该页面的开头标签上有一个错字,仅供参考。 对于Google Apps,您根本无法使用HTTPS,但对于appspot您可以。 至于使用自己的证书,你不能! 对于appspot,Google的证 ...
  • 正如Wooble指出的那样,这仅适用于从开发环境发送电子邮件 - 所以选择最简单的选项。 如果您无法使用它们中的任何一个,则在开发服务器上发送的电子邮件仍将显示在日志中,因此您可以在其中进行调试。 As Wooble points out, this only applies to sending email from the development environment - so pick whichever option is easiest. If you can't get any of them ...
  • 通过首先安装pycrypto,按照此处的说明并使用对此问题的答案的见解进行修复。 我用于最终构建的完整命令行是: CC='/usr/bin/gcc-4.0' python2.5 setup.py build Fixed by installing pycrypto first, following the instructions from here and using the insight from an answer to this question. The full command line I ...
  • 在你的nginx.conf中你需要配置 lua_ssl_verify_depth 2; lua_ssl_trusted_certificate /pathto-ca-certs.pem; 在我的情况下,我的服务器只调用一个外部HTTPS端点。 因此,我使用完整链(通过Firefox中的borwser ceritificate导出)导出证书并导入到PEM文件中。 这是我上面提供的.pem文件。 我使用lua-resty-http来调用https,它运行正常。 您可以使用wireshark / fiddler ...
  • 在执行以下操作时,您需要在本地系统上安装相应版本的1.6.1以匹配运行时支持的版本1.6.1: libraries: - name: numpy version: "1.6.1" 虽然app引擎灵活 ,但你可以运行你想要的任何版本的numpy;) You need a corresponding version of 1.6.1 installed on your local system to match the runtime-supported version 1.6.1 when doing: ...

相关文章

更多

最新问答

更多
  • h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
  • 创建一个功能(Create a function)
  • 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
  • PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
  • Qt冻结循环的原因?(Qt freezing cause of the loop?)
  • TableView重复youtube-api结果(TableView Repeating youtube-api result)
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
  • 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
  • 以编程方式创建UITableView(Creating a UITableView Programmatically)
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
  • Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
  • 设置kotlin扩展名(Setting a kotlin extension)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 如何在vim中启用python3?(How to enable python3 in vim?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • dedecms如何安装?
  • 在哪儿学计算机最好?
  • 学php哪个的书 最好,本人菜鸟
  • 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
  • 如何覆盖错误堆栈getter(How to override Error stack getter)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
  • 电脑高中毕业学习去哪里培训
  • 正则表达式验证SMTP响应(Regex to validate SMTP Responses)