我正在尝试按照http://www.jqueryscript.net/form/jQuery-International-Telephone-Input-With-Flags-Dial-Codes.html上的jquery 教程在表单中创建带有国家/地区代码的输入类型编号。但是,在我的情况下,虽然标志似乎发生了变化,但国家代码并未添加到输入字段中,如演示中所示。
以下是他们提供的代码:
<head>
<meta charset="utf-8">
<title>International Telephone Input</title>
<link rel="stylesheet" href="build/css/intlTelInput.css">
<link rel="stylesheet" href="build/css/demo.css">
</head>
<body>
<form>
<input id="mobile-number" type="tel">
<button type="submit">Submit</button>
</form>
<!-- Load jQuery from CDN so can run demo immediately -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="build/js/intlTelInput.js"></script>
<script>
$("#mobile-number").intlTelInput({
//allowExtensions: true,
//autoFormat: false,
//autoHideDialCode: false,
//autoPlaceholder: false,
//defaultCountry: "auto",
//ipinfoToken: "yolo",
//nationalMode: false,
//numberType: "MOBILE",
//onlyCountries: ['us', 'gb', 'ch', 'ca', 'do'],
//preferredCountries: ['cn', 'jp'],
//preventInvalidNumbers: true,
utilsScript: "lib/libphonenumber/build/utils.js"
});
</script>
Run Code Online (Sandbox Code Playgroud)
这是我尝试实现它的链接:https : //www.easyaccom.com/mobile/verifynumber.html
我曾尝试更改脚本中注释掉的选项,但没有帮助。
我正在尝试使用mandrill api发送带有模板的电子邮件.我正在研究这里记录的方法:https://mandrillapp.com/api/docs/messages.php.html#method=send-template 代码在URL中实现:http://ezaccom.com/mxl.php 我的问题就是我的所有电子邮件都排队等候而不是按照他们应该的速度快速发送.这是代码(注意%TEMPLATE CODE%是我的电子邮件模板所在的位置):
try {
$mandrill = new Mandrill('API_KEY_REDACTED');
$template_name = 'Welcome mail on email /FB sign-up to very email id';
$template_content = array(
array(
'name' => 'Welcome mail on email /FB sign-up to very email id',
'content' => 'sign-up'
)
);
$message = array(
'html' => '%TEMPLATE CODE%',
'text' => 'Example text content',
'subject' => 'Welcome to Easyaccom',
'from_email' => 'hello@easyaccom.com',
'from_name' => 'Easyaccom',
'to' => array(
array(
'email' => 'RECIPIENT@gmail.com', …Run Code Online (Sandbox Code Playgroud) 我的问题需要将固定数组大小转换为动态内存分配.我尝试了各种calloc,malloc和relloc语句,但似乎没有任何效果.我想即使是一个void*数据指针也没用.
请将此代码转换为动态内存,以便稍后调整数组大小.另外要添加我正在使用链表,所以这个数组是一个Node指针.
Node *lists[100] //this does my job
lists[listNo] = NULL;
Run Code Online (Sandbox Code Playgroud)
如果我想使用malloc:
Node *lists = (Node) malloc(100*sizeof(Node));
lists[listNo] = NULL; // gives me error when I use malloc or calloc and the error is assigning Node from void*
Run Code Online (Sandbox Code Playgroud) arrays ×1
c ×1
email ×1
javascript ×1
jquery ×1
linked-list ×1
mandrill ×1
php ×1
templates ×1