将url参数添加到html页面

时间:2015-05-05 07:53:12

标签: javascript html

我目前有一个名为#include <iostream> class foo{ public: virtual void operator()() = 0; virtual ~foo(){} }; class bar: public foo{ public: void operator()(){ std::cout << "bar" << std::endl;} }; class car: public foo{ public: void operator()(){ std::cout << "car" << std::endl;} }; int main(int argc, char *argv[]) { foo *a = new bar; foo *b = new car; //prints out the address of the two object: //hence I know that they are being created std::cout << a << std::endl; std::cout << b << std::endl; //does not call bar() instead returns the error mentioned above //I also tried some obscure variation of the theme: //*a(); *a()(); a()->(); a->(); a()(); //just calling "a;" does not do anything except throwing a warning a(); //the following code works fine: when called it print bar, car respectivly as expected // bar b; // car c; // b(); // c(); delete b; delete a; return 0; } 的html文件,其中包含两个输入元素

abc.html

该按钮只显示文本框值。

  1. 有没有办法可以添加一些url参数,以便我可以指定textbox的值。

  2. 当页面加载时,按钮是否可以自动启动。

  3. Inshort我想提供url参数,这样当我打开url时,我只看到我在参数中传递的值。还应启动按钮<input type="text" id="txt"></input> <input type="button" id="btn"></input> 事件。

0 个答案:

没有答案