本文介绍了我是从js语言程序创建一个快捷语言程序,但代码不起作用的原因?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建快捷方式lang程序,但代码无法正常工作,我初学者...



我尝试过:



d =凭证;

o =对象;

p =原型;

t = this;

opw = fw(markUp)

{

t.write(markUp);

};

dw(你好);

/ *不知怎的,我的代码无法解决任何问题* /

i m creating shortcut lang program, but code doesnt work, i m beginner..

What I have tried:

d = document;
o = Object;
p = prototype;
t = this;
o.p.w = f w(markUp)
{
t.write(markUp);
};
d.w("hello");
/* somehow my code doesnt work any solution */

推荐答案

引用:

即时创建快捷方式lang程序,但代码不起作用

i m creating shortcut lang program, but code doesn't work



你的代码不起作用,因为你需要一个类似于C预处理器的功能,它不是语言的一部分。



你必须找到一段与预处理器相同的代码。



一种可能性是在服务器端使用代码(php或C#)来预处理你的js文件。



您需要进行大量搜索才能找到解决方案帽子符合你的需要。


your code doesn't work because you need a functionality similar to the C preprocessor which is not part of the language.

You will have to find a piece of code that will do the same as the preprocessor.

One possibility is to have code (php or C#)on server side to preprocess your js file.

You have a lot of search ahead to find a solution that fit your needs.


这篇关于我是从js语言程序创建一个快捷语言程序,但代码不起作用的原因?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 17:33