问题标签 [hints]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
631 浏览

visual-studio - ReSharper 中的 IntelliSense 提示

如果来自 Visual Studio 的 IntelliSense(菜单 RESHARPER-> Options ... -> IntelliSense 并选择 Visual Studio),则下拉菜单有提示。如果来自 ReSharper 的 IntelliSense(菜单 RESHARPER-> 选项 ... -> IntelliSense 并选择 ReSharper),则不会出现提示。

在 ReSharper IntelliSense 工作提示(提示)的情况下如何做到这一点?

Visual Studio 中的 IntelliSense:

Visual Studio http://s2.ipicture.ru/uploads/20130319/n0UQD0fs.png

ReSharper 的 IntelliSense:

ReSharper http://s2.ipicture.ru/uploads/20130319/zTR8z8uB.png

0 投票
1 回答
1613 浏览

oracle - SQL Developer 剥离内联提示

我正在使用 SQL Developer 3.1.07。我向 Oracle 运行了一个带有内联提示的查询,--+ hint但 SQL Developer 似乎在将提示提交到数据库之前已经剥离了提示。多行提示/*+ hint */没有被剥离。是否有在 SQL Developer 中保留内联提示/注释的选项?

0 投票
0 回答
71 浏览

sql - 当我添加新索引时,查询优化器不应该仍然选择散列连接吗?

我有这个查询

推荐这个计划: 在此处输入图像描述

请注意,它对连接字段使用哈希连接。总成本为 20,时间为 4。

然后,我在 EquipmentId 表上添加了一个索引,使用它作为外键(服务)。

相同的查询产生了这个计划: 在此处输入图像描述 总成本为 22,时间为 6。

应该还是选择了之前的方案吧?

(当我使用提示时,

它返回到第一个结果)。

0 投票
1 回答
119 浏览

ruby-on-rails - List all group folders

Hard to describe with words, I'll rather show you the code and explain along. Right now I can tell you that I'm writing app with UNIX-like rights system and I've ran into one problem, I don't know how to solve yet. Below are my models with relations.

With my system in mind, every user in group should have access to all folders that the group owner owns(not taking rights in account right now). And this is how I tried to list all folders, user has access to.

In Folders controller

In list_folder view

So the problem is with the code right now, if user himself owns a group, his folders get fetched aswell. And I don't want this to happen, because I have other place to watch and edit folders that user owns. Here I want to bring only those that he gets from other groups. I tried to somehow exclude him from query but didnt succeed. Then I tried to remove him from @user_groups array but it also didn't work out the way I wanted. I am open to any suggestions on this problem and also if possible, I'd like to get some hints on how to rewrite the code in view, because iterator(or cycle?) in iterator looks messy for me.

0 投票
2 回答
606 浏览

delphi - Delphi XE2:OnHideHint事件自动恢复StatusBar之前的文字?

TAction 有一个 OnHint 事件,但不幸的是没有 OnHideHint 事件。这有以下缺点:我有 ToolButtons 和其他与操作相关的控件。每当鼠标悬停在这样的控件上时,Action 的提示就会显示在 StatusBar 中;(我已将 StatusBar 的 AutoHint 属性设置为 True)。但是当鼠标离开 ToolButton 时,StatusBar 中先前的自定义文本(不是来自提示)不会自动恢复!现在我可以为表单上的每个控件编写一个 OnMouseLeave 事件处理程序来恢复我在状态栏中的自定义文本,但这会很麻烦!不是有什么东西可以自动恢复状态栏中的先前文本吗?TAction 中的 OnHideHint 事件将是理想的!

0 投票
3 回答
41614 浏览

sql - How to force oracle to not to use an index

I have a requirement in which i have to force the sql not to use a particular index which exists on a table.

for example,

I cannot drop the index id1 and neither drop it as i dont have rights on it. therefore i want to add some kind of hint to avoid using it..

Is there any such hint, or is there any workaround for this.

Thanks in advance

0 投票
1 回答
194 浏览

jquery - jquery autosuggestion 浏览提示列表

我想创建带有自动提示的搜索工具栏。我不想使用 jquery 自动完成插件。我已经创建了用于从 jquery 到 php 以及从 php 到 jquery 发送和接收信息的脚本。我已经得到了一切,但我想添加一个使用箭头浏览 hoints 列表的可能性。它不起作用。我认为我的问题是 jquery 看不到动态添加的“li”。你有什么想法吗?

HTML:

jQuery:

0 投票
1 回答
547 浏览

qt - Qt Creator setInputMethodHints 不起作用

我现在的主要目标是禁止在行编辑中输入一些字符。我想禁止 (!@#$%^&*()) 字符,因为我确实使用 SQL 数据库,有人可能会在没有过滤此字符的情况下损坏我的数据库.我尝试使用setInputMask,但这样我只能使用字母。对于“Anna-Maria”等名称,我也需要使用“-”符号。所以最后,setInputMethodHints 不起作用,我不知道该怎么办。我只需要禁止一些“危险”字符。如果可以的话,请给我一些源代码。先感谢您。

0 投票
0 回答
1466 浏览

dns - 配置 DNS 服务器无法配置根提示

我的 DNS 有问题.. 我想将我的客户端计算机 (win xp) 设置为域,但无法联系域,在详细信息上,它说,我的 DNS 没有响应。然后我在服务器命令提示符下键入 nslookup,它说 RTO 和默认服务器未知。我尝试配置 DNS 服务器直到完成,但是当我单击完成按钮时,出现通知“DNS 服务器向导无法配置根提示”,任何人都可以帮助我吗?

0 投票
3 回答
11297 浏览

php - 崇高文本 3 提示,如在 NetBeans 中

是否有任何扩展在 Sublime Text 3 中提供提示(自动完成),就像在 NetBeans 中一样?不仅是 php 函数,还有所有对象方法、属性等。基本上,当您使用 OOP、框架等时,它很有用。

NetBeans X SublimeText 提示