网址: http://localhost/?v=
码:
Route::get('/', ['as' => 'home', function()
{
dd(Request::has('v'));
}]);
Run Code Online (Sandbox Code Playgroud)
输出: false
到底是怎么回事?这是一个错误还是我做错了什么?
我在我的HTML页面中嵌入了iframe元素:
<iframe src="applet.html" frameborder="0" style="width: 600px; height: 600px;"></iframe>
Run Code Online (Sandbox Code Playgroud)
applet.html看起来像这样:
<html>
<head>
</head>
<body>
<applet code="ClockApplet.class" width="100%" height="100%">
</applet>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
问题是:如何在iframe内部的Java applet上显示div元素(使用position:absolute).
我试图使用另一个iframe元素:
<html>
<head>
</head>
<body>
<iframe src="applet.html" frameborder="0" style="width: 600px; height: 600px;"></iframe>
<iframe src="javascript:false;" frameborder="0" style="position: absolute; top: 10px; left: 10px; width: 150px; height: 150px; z-index: 99"></iframe>
<div style="position: absolute; top: 10px; left: 10px; background-color: gray; height: 150px; width: 150px; z-index: 100">Hello World</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
适用于IE,Firefox但不适用于Chrome.
我想在元素上触发onpaste事件来检索剪贴板中的数据(我想检查剪贴板中是否存在图像并将其上传到服务器中).它在Chrome上运行得很完美:
$('#textarea')[0].onpaste = function(event)
{
var items = event.clipboardData.items;
if (items.length)
{
var blob = items[0].getAsFile();
var fr = new FileReader();
fr.onload = function(e)
{
alert('got it!');
}
fr.readAsDataURL(blob);
}
}
Run Code Online (Sandbox Code Playgroud)
在Firefox上不起作用:event.clipboardData.items不存在.您是否知道如何在元素中检索onpaste事件?
......正确的道路.
例如.我有一个名为foo.js的脚本.我想插入样式表声明,我可以使用以下指令:
$('head').append('<link rel="stylesheet" href="/template/foo.css" type="text/css" />');
Run Code Online (Sandbox Code Playgroud)
问题:我必须将完整路径放到样式表文件中.所以我不得不把/template/foo.css放到:http://hostname/directory/template/foo.css.我无法静态设置它,因为脚本可以放在不同的服务器和不同的位置.所以它可以是:http://foo.com/bar/foo.css或http://foo.com/foo.css.
如果我可以在服务器上获取foo.js文件的路径,那将非常有用.那将是足够好的,因为我可以根据javascrpt的文件设置样式表位置.
我相信可以根据坐标检索道路上的限速.我只是找不到任何例子(其余的API).据我所知,我需要使用路由机制来做到这一点?
我有浮点字段包含(例如):1234.5678.我想把它显示为1 234.56或1 234,56.我怎样才能做到这一点?
我使用的to_char()函数给了我:
SELECT to_char(12345.5678,'99999999999999999D99');
-> 12345,57
Run Code Online (Sandbox Code Playgroud)
但是,当我有零价值时......
SELECT to_char(0,'99999999999999999D99');
-> ,00
Run Code Online (Sandbox Code Playgroud) 我只想说我的桌子上有一棵名为"page"的树:
Foo
-- Bar 1
-- Bar 2
-- Bar 3
-- Some foo
-- Some value
Bar
-- Bar 4
Run Code Online (Sandbox Code Playgroud)
我想按节点名称搜索.例如"bar%".预期的输出应该是:
Foo
-- Bar 1
-- Bar 2
-- Bar 3
Bar
-- Bar 4
Run Code Online (Sandbox Code Playgroud)
我找不到在MySQL中编写正确查询的解决方案.搜索不是问题 - 我不知道如何在搜索结果中获得节点的深度.
javascript ×2
applet ×1
clipboard ×1
firefox ×1
here-api ×1
html ×1
iframe ×1
jquery ×1
laravel ×1
laravel-5 ×1
mysql ×1
nested-sets ×1
postgresql ×1
rest ×1
sql ×1