How to convert any .htc file into .js file?

后端 未结 2 357
南方客
南方客 2020-12-20 06:32

How can I convert any .htc file into .js and use the resulting JavaScript?

For example, this is a .htc file: http://curved-corner.googlecode.com/files/border-radius.

相关标签:
2条回答
  • 2020-12-20 07:07

    You might find some interesting information regarding conversion of HTC to JavaScript objects in this blog: http://ehudpardo.blogspot.com/2011/09/part-1-converting-htc-behaviors-to.html

    0 讨论(0)
  • 2020-12-20 07:17

    It is not possible to convert any .htc file to an "equivalent" .js file. That is, it's not possible automatically, in general. However for the specific file you've posted, you could convert it using jQuery's live event.

    But anyway, there's plenty of Javascript-only libraries that do the "border-radius" thing, why do you need to specific convert this one? A quick google search turns up dozens.

    0 讨论(0)
提交回复
热议问题