如何将.htc文件转换为.js文件? [英] How to convert any .htc file into .js file?

查看:325
本文介绍了如何将.htc文件转换为.js文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将任何.htc文件转换为.js并使用生成的JavaScript?

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

例如,这是一个.htc文件: http://curved-corner.googlecode.com/files/border-radius.htc 。我想将其转换为.js。

For example, this is a .htc file: http://curved-corner.googlecode.com/files/border-radius.htc. I want to convert it into .js.

我想转换它,因为我正在使用的CMS不允许我附加.htc文件。我认为这是因为mime类型问题。

I want to convert it because the CMS I'm working with will not allow me to attach the .htc file. I think it's because of a mime type issue.

推荐答案

无法转换任何。 htc文件到等效.js文件。也就是说,通常不能自动。但是对于您发布的特定文件,您可以使用jQuery的直播活动进行转换。

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.

但是,无论如何,有很多只支持Javascript的库执行border-radius的事情,为什么你需要特定转换这个?一个快速的谷歌搜索变成了几十个。

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.

这篇关于如何将.htc文件转换为.js文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆